Skip to content

Conversation

@topcoderKai
Copy link

Make canContain return true for <table>, <thead>, <tbody>, <tfoot> and <tr> elements,
so that it will not close the open table elements and break table layout.

…d <tr> elements, so that it will not close the open table elements and break table layout.
.and(Sanitizers.IMAGES)
.and(Sanitizers.TABLES);
assertEquals("<table></table>Hallo\r\n\nEnde\n\r", pf.sanitize(input));
assertEquals("<table>Hallo\r\n\nEnde\n\r</table>", pf.sanitize(input));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a better behavior?

@mikesamuel
Copy link
Contributor

Thanks for the patch.

I think 66794b6 addresses this.

@mikesamuel mikesamuel closed this Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants