This page last changed on Oct 18, 2011 by jed.wheeler@involver.com.

Overview

Escapes HTML, specifically the characters & \ " < >


Attributes

This filter takes no attributes.


Examples

In this example, we escape a <b> tag and present it as text instead of making the text bold.

{{ "<b> represents bold text" | escape_html }}

This yields the following output:

&lt;b&gt; represents bold text

FAQ

  1. What characters does this escape?
    This filter escapes HTML tag-related reserved characters, most notably & \ " < and >

Related Topics

Document generated by Confluence on Feb 12, 2013 09:09