I have added a Htmleditorextender ajax control to my asp.net web application with putting XSS sanitizer in it for XSS security but now when I retrieve the text from Htmleditorextender the sanitizer removes HTML5
from it and the all input comes in a single.
I Searched on internet and found that this is happening because XSS sanitizer recognizes HTML5 tags as unknown unsafe tags and thats why all HTML5 tags gets removed from formatted HTML of htmleditorextender now i am using htmleditorextender by making EnableSanitization="false"
Should I remove XSS sanitizer from my project or I should go for
- TinyMCE or
- CKEditor
but both of these are not configured for image upload and user hava to add their own third party image uploader.
Please Tell me how can i prevent my site from XSS attacks without loosing html tags formatted in htmleditorextender.
tag is created and on submission of html text all
tags gets removed by sanitizer and that's why new line break is not appearing in firefox, can you now help me in resolving this issue. – Jul 09 '12 at 18:03