Reputation: 886
I have a string that contains HTML (from Markdown), other people can submit these and these strings are rendered on a webpage as actual HTML.
I'd like to safely strip every bit of Javascript from this HTML, whether it's in script tags or attributes.
What's the best/safest way of doing this?
Upvotes: 0
Views: 424