Sponsored Link

escape

Escape to the variable lists separated by a delimiter(default: | ).
If you have multiple described will be processed in the order in which they are listed.
The value to be printed will be output through the htmlspecialchars($str, ENT_QUOTES, ENCODING, false) by default.
When you DEFAULT_HTML_ESCAPE to FALSE will disable the default escape.

With DEFAULT_HTML_ESCAPE=TRUE (the default), the following are the same.

{{ val_name }}
{{ val_name|html }}

The types of escapes are as follows.

html

The value is HTML escaped with htmlspecialchars.

{{ val_name|html }}


htmlall

The value is HTML escaped with htmlentities.

{{ val_name|htmlall }}


quotes

"'" will be converted to "\'".

{{ val_name|quotes }}


js

The value is escaped for JavaScript.

{{ val_name|js }}


nl2br

All newlines will be converted to HTML line breaks with nl2br.

{{ val_name|nl2br }}


nbsp

Space will be converted to ' '.

{{ val_name|nbsp }}


tab2nbsp

'\t' will be converted to '    '.

{{ val_name|tab2nbsp }}


url

The value will be URL encoded with rawurlencode.

{{ val_name|url }}


urlpathinfo

The value will be URL encoded with rawurlencode, '%2F' will be converted to '/'.

{{ val_name|urlpathinfo }}


raw

Not escaped. The value is output as it is.

{{ val_name|raw }}