List of utility methods to do HTML Sanitize
String | sanitize(String html) sanitize if (html == null || html.isEmpty()) { return html; for (int i = 0; i < sanitizeSrc.length; i++) { html = html.replace(sanitizeSrc[i], sanitizeDesc[i]); return html; |
String | sanitizeForHtmlTag(String string) Escapes HTML tag safely. if (string == null) { return null; return string.replace("<", "<").replace(">", ">"); |
String | sanitizeQuot(String html) sanitize Quot if (html == null || html.isEmpty()) { return html; return html.replace("\"", """); |