Open
Description
input:
<div>
<table>
<td style="word-break: keep-all;">
</td>
</table>
</div>
policy:
Sanitizers.BLOCKS .and(Sanitizers.FORMATTING) .and(Sanitizers.LINKS) .and(Sanitizers.TABLES) .and(Sanitizers.IMAGES) .and(Sanitizers.STYLES) .and(.and(new HtmlPolicyBuilder() .allowElements("style") .allowAttributes("style").onElements("td", "table","div") .allowAttributes("type", "word-break").onElements("style") .toFactory());
Expected output (should contain word-break).
<div>
<table>
<td style="word-break: keep-all;">
</td>
</table>
</div>
Metadata
Metadata
Assignees
Labels
No labels