Richt text editor colors not working without disabling sanitizing

2
Hey there,   I have the following issue: I am using the richt text editor The user needs to be able to set the color of pieces of text I have Sanitize content set to true (because of safety) The color of text won’t save If I disable Sanitize content, the functionality works fine, but this is not recommended due to security risks regarding XSS vulnerabilities.   Anybody got a recommendation or concept to try? Cheers in advance!
asked
2 answers
2

Hi Geoffrey Doornbosch,

When you Sanitize your content it removes all the html tags from the content, so it is not possible to show color the content with Sanitized.

Thanks.

answered
1

Hi Geoffrey,

In the rich text appearance add a separate css class and add color of the text which color you needed.

 

answered