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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

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

c# - Search and Add Comment with OpenXML for Word -