return text;
}
- /* Xhtml escape and safety. */
+ /* XHTML escape and safety. */
public static String getXhtmlEscapedString(String x) { // similar to PHP's htmlspecialchars()
if (null == x) {
fakeXhtmlPageContent.append("<head><title /></head>");
fakeXhtmlPageContent.append(String.format("<body>%s</body>", text));
fakeXhtmlPageContent.append("</html>");
- // Validate Xhtml (with no dangerous tags and event attributes).
+ // Validate XHTML (with no dangerous tags and event attributes).
try {
SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setValidating(true);