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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -