I have a ckeditor editer, after applying format to the text I display the text when a button is clicked. I want the text to be displayed with all the formatting applied in the text editor.
In order to avoid xss, I do Server.HtmlEncode(content).But it is not displayed in the format applied .
Example:
I would like like the text is bold,So :<strong>bold text</strong>
But after Server.HtmlEncode("<strong>bold text</strong>"),the format is not applied,the bold text is not bold.
How to do?Tks!