Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Filters ยท mod_base
  • Reference
  • Frontend developer
  • Template filter
  • Serialize
  • XML

escapexml

Module

mod_base

Escape the value for insertion in xml output.

For example:

{{ value|escapexml }}

When the value is <hel'lo> then the output is &#60;hel&#39;lo&#62;.

Edit on GitHub

Related documentation

Filters

urlencode

Make a text safe for URLs.

Filters

escapejson

Escapes the value for safe insertion into JSON strings.

Filters

to_json

Display any value as in JSON (JavaScript Object Notation).

Filters

url_abs

Generates an absolute URL for the given dispatch information.

Filters

pickle

Pickle an Erlang value so that it can be safely submitted with a form.

Filters

escape_ical

Escape the value according to the RFC2445 rules.

Filters

url

Generates the relative URL for the given dispatch information.

Filters

flatten_value

Flatten a list to a comma separated string.

Filters

websub_error

Translate subscription error codes into explanations for editors. Accepts atoms, plain binaries and legacy binaries formatted with ~p.

GitHub © 2026 Zotonic