My site stores HTML that is generated by the user. Then, of course, this data is displayed on the web page. What are the best methods for smoothing HTML and avoiding XSS attacks? Does the tag remove <script>and <iframe>? Will it cover all browsers? I heard about old browsers displaying HTML from weird encoding ... how can I handle this?
I would like to get a general answer that does not apply to any languages ββor technologies.
source
share