Assume the template consists of only one variable:
${htmlString}
and the corresponding Controller:
render("<div>some html markup</div>");
As a result i get an escaped string, but want to get the original html. Is there any way to do this?
You can use ${mystring.raw()} i think. Or embed it inside a #{verbatim} tag. -morten
In the Play2 template engine the escaping is done like this:
@Html("\n<br>")
(Source)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With