- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for xmlAttributeEscaper (0.09 seconds)
-
android/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. assertThat(xmlAttributeEscaper.escape("\"test\"")).isEqualTo(""test""); assertThat(xmlAttributeEscaper.escape("'test'")).isEqualTo("'test'"); // Test all escapes
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 5K bytes - Click Count (0) -
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. assertThat(xmlAttributeEscaper.escape("\"test\"")).isEqualTo(""test""); assertThat(xmlAttributeEscaper.escape("'test'")).isEqualTo("'test'"); // Test all escapes
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 5K bytes - Click Count (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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Sep 11 17:06:34 GMT 2025 - 6.4K bytes - Click Count (0)