- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for xmlContentEscaper (0.04 sec)
-
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 {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.8K 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
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jun 20 17:15:33 UTC 2025 - 6.5K bytes - Viewed (0)