java - Format a string and replace %s with html element in scala play framework -


i have string "user: %s" , want format , replace "%s" <a href="#">john</a>. how should in view files?

p.s. using "user: %s".format("john") browser render i <a href="#">john</a> instead of "i john".

to output raw html in template:

<p>   @html(article.content)     </p> 

from play docs


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -