Character escaping
Edit on GitHub
brlinebreaks
Translate HTML <br/> elements into ASCII newlines ( \n ).
escape
HTML escape a text. Escapes all reserved HTML characters in the value.
Escaped strings are safe to be displayed in a HTML page. When you
echo a query string…
escape_check
Ensures thant an HTML escaped value is properly escaped.
escape_ical
Escape the value according to the RFC2445 rules.
escape_link
Convert any URLs in a plaintext into HTML links, with adding the
rel="nofollow" attribute, and replaces all newlines with <br> tags.
escapejs
Escapes the value for insertion in JavaScript output.
escapejson
Escapes the value for insertion in JSON output.
escapexml
Escape the value for insertion in xml output.
fix_ampersands
Replaces ampersands in the value with “&” entities.
force_escape
HTML escapes a text.
linebreaksbr
Translate ASCII newlines ( \n ) into HTML <br /> elements.
slugify
Converts a text into a slug.
unescape
Removes HTML escaping from a text.
urlencode
Make a text safe for URLs.
Encryption
Filters
Forms