I'm looking for some guidance\back practice, etc on a project i'm currently working on.
The site has a form, which allows the user to create an email template. The email template is simply a text area with a wysiwyg editor (bootstrap-wysihtml5).
So the text area will have basic html tags so the user can format the look of the email.
My question is : What is the best\safest way to handle posting back the HTML from the text area to avoid any script attacks, etc?
If its any help i do have a whitelist of HTML tags for the emails.