Re:HTML5 Security Cheatsheet: What your browser does when yo...
by Adirael on Friday November 16, 2012 @12:17PM
(#4794721)
Still, OP's right. If you need to let them use plain HTML (it's better to use markdown or something similar) just parse it and remove any attributes and tags not on your whitelist.
[ Parent
| on HN ]
Re:HTML5 Security Cheatsheet: What your browser does when yo...
by TeMPOraL on Friday November 16, 2012 @12:47PM
(#4794891)
Or make them use Markdown, org-mode syntax, BBCode or s-expressions ({b text in bold {i and italics}}). User formatting should never go directly to the browser, without being reinterpreted by the website.