weavejester / hiccup

Fast library for rendering HTML in Clojure
http://weavejester.github.io/hiccup
Eclipse Public License 1.0
2.68k stars 174 forks source link

Escape / ? #128

Open danielcompton opened 8 years ago

danielcompton commented 8 years ago

OWASP recommend escaping forward slashes as well. Would you be happy to take a PR for this?

https://www.owasp.org/index.php/XSS_%28Cross_Site_Scripting%29_Prevention_Cheat_Sheet#RULE_.231_-_HTML_Escape_Before_Inserting_Untrusted_Data_into_HTML_Element_Content

weavejester commented 8 years ago

Maybe... It doesn't make a very strong case for that recommendation, but on the other hand I don't see the harm in it, either.