jrquick jrquick - 1 year ago 71
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 }}

The problem is it displays exactly like so:

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

Instead of just:

Hello, World

Answer Source

Per their docs:

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


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download