You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to do things like changing `h1`s to `div`s with a certain class:
64
64
65
65
```Java
@@ -82,7 +82,7 @@ need to be explicitly whitelisted using the `allowWithoutAttributes()`
82
82
method if you want them to be allowed through the filter when these
83
83
elements do not include any attributes.
84
84
85
-
[Attribute policies](https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190503.1/org/owasp/html/AttributePolicy.html) allow running custom code too. Adding an attribute policy will not water down any default policy like `style` or URL attribute checks.
85
+
[Attribute policies](https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190610.1/org/owasp/html/AttributePolicy.html) allow running custom code too. Adding an attribute policy will not water down any default policy like `style` or URL attribute checks.
86
86
87
87
```Java
88
88
newHtmlPolicyBuilder = new HtmlPolicyBuilder()
@@ -150,7 +150,7 @@ of the output.
150
150
151
151
## Telemetry
152
152
153
-
When a policy rejects an element or attribute it notifies an [HtmlChangeListener](https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190503.1/org/owasp/html/HtmlChangeListener.html).
153
+
When a policy rejects an element or attribute it notifies an [HtmlChangeListener](https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190610.1/org/owasp/html/HtmlChangeListener.html).
154
154
155
155
You can use this to keep track of policy violation trends and find out when someone
*[HtmlPolicyBuilder](https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190610.1/org/owasp/html/HtmlPolicyBuilder.html) lets you easily build custom policies.
39
39
40
40
For advanced use, see:
41
-
*[AttributePolicy](https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190503.1/org/owasp/html/AttributePolicy.html) and [ElementPolicy](http://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20180219.1/org/owasp/html/ElementPolicy.html) allow complex customization.
42
-
*[HtmlStreamEventReceiver](https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190503.1/org/owasp/html/HtmlStreamEventReceiver.html) if you don't just want a `String` as output.
41
+
*[AttributePolicy](https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190610.1/org/owasp/html/AttributePolicy.html) and [ElementPolicy](http://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20180219.1/org/owasp/html/ElementPolicy.html) allow complex customization.
42
+
*[HtmlStreamEventReceiver](https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20190610.1/org/owasp/html/HtmlStreamEventReceiver.html) if you don't just want a `String` as output.
0 commit comments