Say I have a string like this defined:
val inner = "<p>Paragraph 1</p><p>Paragraph 2</p>"
And I want to embed this html using some rendering code along these lines:
div(inner).render
How to I prevent encoding of the inner part? I want to yield the complete html structure as below:
<div><p>Paragraph 1</p><p>Paragraph 2</p></div>
And not:
<div><p>Paragraph 1</p><p>Paragraph 2</p></div>
You need to use the raw function to prevent encoding. So the code should read: