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

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -