sanitize
Remove special characters from a variable.
Runs the variable through PHP’s htmlspecialchars function, converting characters like <
and >
into <
and >
, respectively.
Sample Usage
{{ comment|sanitize }}
If {{ username }}
is Nice to <b>meet you.</b>
, this will output Nice to <b> meet you.</b>
.
Parameters
This modifier has no parameters.