Class HTMLSanitizer
- java.lang.Object
-
- de.hybris.platform.adaptivesearchbackoffice.common.HTMLSanitizer
-
public class HTMLSanitizer extends java.lang.ObjectThis file contains static methods that are used by JSP EL.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.owasp.html.PolicyFactoryPOLICY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringsanitizeHTML(java.lang.String untrustedHTML)Sanitizes unsafe HTML string
-
-
-
Method Detail
-
sanitizeHTML
public static java.lang.String sanitizeHTML(java.lang.String untrustedHTML)
Sanitizes unsafe HTML string- Parameters:
untrustedHTML- - potentially unsafe HTML string- Returns:
- safe HTML string with allowed elements only. All other elements that are not specified as allowed are removed.
-
-