jrquick jrquick - 7 months ago 14
HTML Question

How do you output Fat Free PHP variable as HTML?

I am trying to output a variable from F3 which contains HTML.

$message = "<p>Hello, <b>World</b></p>"


I am outputting it as follows:

<div class="container">
{{ @message }}
</div>


The problem is it displays exactly like so:

"<p>Hello, <b>World</b></p>"


Instead of just:

Hello, World

Answer

Per their docs:

<div class="container">
    {{ @message | raw }}
</div>

Source