Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testXmlAttributeEscaper (0.22 sec)

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

        // Test quotes are not escaped.
        assertEquals("\"test\"", xmlContentEscaper.escape("\"test\""));
        assertEquals("'test'", xmlContentEscaper.escape("'test'"));
      }
    
      public void testXmlAttributeEscaper() throws Exception {
        CharEscaper xmlAttributeEscaper = (CharEscaper) XmlEscapers.xmlAttributeEscaper();
        assertBasicXmlEscaper(xmlAttributeEscaper, true, true);
        // Test quotes are escaped.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
Back to top