Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for xmlContentEscaper (0.33 sec)

  1. android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java

      public void testXmlContentEscaper() throws Exception {
        CharEscaper xmlContentEscaper = (CharEscaper) XmlEscapers.xmlContentEscaper();
        assertBasicXmlEscaper(xmlContentEscaper, false, false);
        // Test quotes are not escaped.
        assertEquals("\"test\"", xmlContentEscaper.escape("\"test\""));
        assertEquals("'test'", xmlContentEscaper.escape("'test'"));
      }
    
      public void testXmlAttributeEscaper() throws Exception {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 4.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/xml/XmlEscapersTest.java

      public void testXmlContentEscaper() throws Exception {
        CharEscaper xmlContentEscaper = (CharEscaper) XmlEscapers.xmlContentEscaper();
        assertBasicXmlEscaper(xmlContentEscaper, false, false);
        // Test quotes are not escaped.
        assertEquals("\"test\"", xmlContentEscaper.escape("\"test\""));
        assertEquals("'test'", xmlContentEscaper.escape("'test'"));
      }
    
      public void testXmlAttributeEscaper() throws Exception {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/xml/XmlEscapers.java

       *
       * <p><b>Note:</b> Double and single quotes are not escaped, so it is <b>not safe</b> to use this
       * escaper to escape attribute values. Use {@link #xmlContentEscaper} if the output can appear in
       * element content or {@link #xmlAttributeEscaper} in attribute values.
       *
       * <p>This escaper substitutes {@code 0xFFFD} for non-whitespace control characters and the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.5K bytes
    - Viewed (0)
Back to top