MCPcopy Create free account
hub / github.com/apache/tomcat / xml

Method xml

java/org/apache/tomcat/util/security/Escape.java:95–100  ·  view source on GitHub ↗

Escape content for use in XML. @param content The content to escape @return The escaped content converted to String or ? if the content was null

(Object content)

Source from the content-addressed store, hash-verified

93 * @return The escaped content converted to String or {@code ?} if the content was {@code null}
94 */
95 public static String xml(Object content) {
96 if (content == null) {
97 return "?";
98 }
99 return xml(null, false, String.valueOf(content));
100 }
101
102
103 /**

Callers 15

doTestBug53867Method · 0.95
visitMethod · 0.95
getExprInXmlMethod · 0.95
getJspAttributeMethod · 0.95
visitMethod · 0.95
appendElementMethod · 0.95
saveMethod · 0.95
writeProvidersMethod · 0.95
writeOptionalMethod · 0.95
renderXmlMethod · 0.95
printTagContentMethod · 0.95
printValueMethod · 0.95

Calls 5

lengthMethod · 0.80
charAtMethod · 0.80
toStringMethod · 0.65
valueOfMethod · 0.45
appendMethod · 0.45

Tested by 1

doTestBug53867Method · 0.76