style() tag html escapes the css code
tfbroner opened this issue · comments
Tomasz commented
When I do something like :
html(head(title("Test"), style(".testnav>a {}"))).render();
it ends up escaped like :
<html><head><title>Test</title><style>.testnav>a {}</style></head></html>
which makes it invalid css code.
Any ideas as to what I'm doing wrong ?
David commented
You could try .rawHtml("<style>...</style>")
Tomasz commented
Thanks,
I used rawHtml inside the style tag and it worked as well.
Scott Embler commented
PR #181 has been merged. Now any String parameters for the TagCreator.script(...)
or TagCreator.style(...)
methods will be treated as unescaped text.