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

permit raw attribute values #137

Closed mccraigmccraig closed 7 years ago

mccraigmccraig commented 7 years ago

some attributes require values which get auto-escaped, e.g.

<meta http-equiv="Content-Security-Policy" 
   content="default-src https://cdn.example.net; child-src 'none'; object-src 'none'">

this PR permits hiccup.util/raw-string to be used on attribute values

weavejester commented 7 years ago

Thanks for the patch. Could you provide more information on why this is a problem?

mccraigmccraig commented 7 years ago

hmm. actually it's not a problem. my mistake!