It seems like other text-decoration properties are not supported, like text-decoration-line or text-decoration-color. I am using the default CssSchema with common blocks and inline formatting.
new HtmlPolicyBuilder()
.allowCommonBlockElements()
.allowCommonInlineFormattingElements()
.allowStyling()
When sanitizing this HTML, the tag will be removed because the style is not supported.
I think at least text-decoration-line should be supported. Because when someone copies HTML with text-decoration: line-through it gets converted to text-decoration-line: line-through when pasting to an input field. But based on my testing, it happens only from Chrome -> Chrome. If using Firefox on any side, it does not seem to get converted.
It seems like other
text-decoration
properties are not supported, liketext-decoration-line
ortext-decoration-color
. I am using the default CssSchema with common blocks and inline formatting.When sanitizing this HTML, the tag will be removed because the style is not supported.
I think at least
text-decoration-line
should be supported. Because when someone copies HTML withtext-decoration: line-through
it gets converted totext-decoration-line: line-through
when pasting to an input field. But based on my testing, it happens only from Chrome -> Chrome. If using Firefox on any side, it does not seem to get converted.