Html markup in Play Framework messages

I am using the internationalization message file in Play. In my messages.en file, I have:

support.msg=Click here to contact <a href="support.html">support</a>

but it prints like

&lt;a href=&quot;support.html&quot;&gt;support&lt;/a&gt;

Is it possible to exit html in the messages.en file so that they are printed as 'as is'

+5
source share
1 answer

By default, Play! automatically escapes strings used in the view. If you want to output raw text (including HTML), wrap the variable in Html().

Example from the documentation :

<p>
  @Html(article.content)    
</p>
+15
source

All Articles