Richt text editor colors not working without disabling sanitizing

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!
2 answers

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.



Hi Geoffrey,

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