HTML filters for working with HTML and URI content in Liquid templates.
escape
escape_once
strip_html
newline_to_br
\n
) in a string with an HTML line break (“).
url_encode
url_decode
xml_escape
cgi_escape
%XX
replacements. CGI escape normally replaces a space with a plus +
sign.
uri_escape
%20
. Reserved characters will not be escaped.
slugify
mode: string
. The default is "default"
. They are as follows (with what they filter):"none"
: no characters"raw"
: spaces"default"
: spaces and non-alphanumeric characters"pretty"
: spaces and non-alphanumeric characters except for ._~!$&'()+,;=@
"ascii"
: spaces, non-alphanumeric, and non-ASCII characters"latin"
: like default, except Latin characters are first transliterated (e.g. àèïòü to aeiou).case: boolean
. The default is false
. The original case of slug will be retained if set to true
.