mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
639 B
639 B
Tag {raw}
Tag {raw <expression>}
allow outputs render results without escaping.
This tag rewrite global option auto_escape
for specified code.
{autoescape true}
...
{$var|up} {* escape *}
{raw $var|up} {* unescape *}
...
{"name is: <b>{$name|low}</b>"} {* escape *}
{raw "name is: <b>{$name|low}</b>"} {* unescape *}
...
{/autoescate}
For functions use tag with prefix raw:
:
{autoescape true}
...
{my_func page=5} {* escape *}
{raw:my_func page=5} {* unescape *}
...
{/autoescate}
Tag can not be applied to compilers as foreach
, if
and other.