- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for xmlAttributeEscaper (0.1 sec)
-
guava-tests/test/com/google/common/xml/XmlEscapersTest.java
} public void testXmlAttributeEscaper() throws Exception { CharEscaper xmlAttributeEscaper = (CharEscaper) XmlEscapers.xmlAttributeEscaper(); assertBasicXmlEscaper(xmlAttributeEscaper, true, true); // Test quotes are escaped. assertEquals(""test"", xmlAttributeEscaper.escape("\"test\"")); assertEquals("'test'", xmlAttributeEscaper.escape("\'test'")); // Test all escapes assertEquals(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.7K bytes - Viewed (0) -
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 * character values {@code 0xFFFE} and {@code 0xFFFF} which are not permitted in XML. For more
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 18 20:55:09 UTC 2022 - 6.5K bytes - Viewed (0)