Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

csware
Copy link
Contributor

@csware csware commented Jan 28, 2024

There are multiple typos in the README

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()
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

@csware csware Feb 2, 2024

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...

Copy link
Contributor

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.

Copy link
Contributor Author

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?

@csware
Copy link
Contributor Author

csware commented Feb 11, 2024

Any news on this?

@csware
Copy link
Contributor Author

csware commented Mar 26, 2024

The readme is still broken...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants