(require '[hickory.core :as hick]
'[hickory.render :as hr])
(-> "
<html>
<body>
<noscript>Ceçi n'est pas de JavaScript</noscript>
</body>
</html>"
hick/parse
hick/as-hickory
hr/hickory-to-html)
;;=>
'"<html><head></head><body>\n <noscript>Ceçi n'est pas de JavaScript</noscript>\n \n</body></html>"
(-> "
<html>
<head>
<noscript>Ceçi n'est pas de JavaScript</noscript>
</head>
</html>"
hick/parse
hick/as-hickory
hr/hickory-to-html)
;;=>
'"<html><head>\n <noscript></noscript></head><body>Ceçi n'est pas de JavaScript\n \n</body></html>"
Hickory doesn't parse
noscripttags correctly when they are in thehead, but does when it is inbody.noscriptshould be supported in both.