-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix examples in README.md #310
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Sven Strickroth <[email protected]>
@@ -88,25 +88,23 @@ elements do not include any attributes. | |||
[Attribute policies](https://static.javadoc.io/com.googlecode.owasp-java-html-sanitizer/owasp-java-html-sanitizer/20220608.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. | |||
|
|||
```Java | |||
new HtmlPolicyBuilder = new HtmlPolicyBuilder() | |||
PolicyFactory myPolicy = new HtmlPolicyBuilder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe HtmlSanitizer.Policy myPolicy = ...
and keep the .build()
below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made it consistent with the first two examples in README
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw. there is no build()
method, only build(...)
with further parameters...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. Right. build(...) is when we connect to an output channel and change listener.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, what's the status of thie PR?
Any news on this? |
The readme is still broken... |
There are multiple typos in the README