1 HtmlPolicyBuilder
Class Ax.owasp.HtmlPolicyBuilder
HtmlPolicyBuilder is fast and easy to configure HTML Sanitizer which lets you include
HTML authored by third-parties in your web application while protecting against XSS.
https://github.com/OWASP/java-html-sanitizer
https://github.com/OpenOLAT/OpenOLAT/blob/master/src/main/java/org/olat/core/util/filter/impl/OpenOLATPolicy.java
Constructor Summary
Method
Description
Creates a new HtmlPolicyBuilder with the given configuration function
Method Summary
Modifier and Type
Method
Description
Ax.text.String
sanitize(Ax.text.String html)
Sanitizes the given html.
Constructor Detail
Ax.owasp.HtmlPolicyBuilder.JSHtmlPolicyBuilder
-
Ax.owasp.HtmlPolicyBuilder.JSHtmlPolicyBuilder( object config )
- Info:
-
Creates a new HtmlPolicyBuilder with the given configuration function - Parameters:
- config - the configuration function
Method Detail
Ax.owasp.HtmlPolicyBuilder.sanitize
-
string Ax.owasp.HtmlPolicyBuilder.sanitize( string html )
- Info:
-
Sanitizes the given html. - Parameters:
- html - the html code
- Returns:
- string