I'm using the Internationalisation messages file in Play. In my messages.en file I have:
support.msg=Click here to contact <a href="support.html">support</a>
but this gets output as
<a href="support.html">support</a>
Is it possible to escape html in messages.en file so they are output 'as is'
By default, Play! automatically escapes strings used in a view. If you'd like to output raw text (including the HTML), wrap the variable in Html()
.
Example from the docs:
<p>
@Html(article.content)
</p>
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