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

escape_ical_text

Escape a value for an iCalendar TEXT property, such as SUMMARY, DESCRIPTION or LOCATION. Backslashes, commas and semicolons are escaped…

Filters

urlencode

Make a text safe for URLs.

Filters

url_abs

Generates an absolute URL for the given dispatch information.

Filters

to_json

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

Filters

escapejson

Escapes the value for safe insertion into JSON strings.

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

flatten_value

Flatten a list to a comma separated string.

Filters

url

Generates the relative URL for the given dispatch information.

GitHub © 2026 Zotonic