Reputation: 11662
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'
Upvotes: 5
Views: 3080
Reputation: 1436
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()
.
<p>
@Html(article.content)
</p>
Upvotes: 15