We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following block is my input:
<html><hr><br><div style="font-weight:bold;">aaaaaaaa</div> <div>bbbbbbbbb.</div> <div>dddddddddd <u>dddd</u> ddddd</div> </html>
And the following is my output:
<html></html><hr /><br /><div style="font-weight:bold">aaaaaaaa</div> <div>bbbbbbbbb.</div> <div>dddddddddd <u>dddd</u> ddddd</div>
As can be seen at the end of my input the closing tag is being moved by the sanitizer right to its starting tag in the output.
This is my policy
new HtmlPolicyBuilder() .allowStandardUrlProtocols() .allowElements("a", "hr", "br", "div", "u") .allowElements("html") .allowStyling() .toFactory();
Just by the way: is it possible to turn off the conversion of single opened tags into closed tags like for example:
<hr> to <hr />
<br> to <br />
Kind regards
The text was updated successfully, but these errors were encountered:
Can I work on this issue??
Sorry, something went wrong.
No branches or pull requests
issue is
The following block is my input:
And the following is my output:
Bug
As can be seen at the end of my input the closing tag is being moved by the sanitizer right to its starting tag in the output.
This is my policy
not part of the issue
Just by the way: is it possible to turn off the conversion of single opened tags into closed tags like for example:
<hr> to <hr />
<br> to <br />
Kind regards
The text was updated successfully, but these errors were encountered: