5.3.5.4 noescape attribute
Description: noescape attribute
Keywords: albatross

###
5.3.5.4 `noescape` attribute

If the `noescape` attribute is present then the value is not escaped. Only use this attribute when you are sure that the result of the expression is safe. Without this attribute all `&`, `<`, `>`, and `"` are escaped.

For example:

    >>> import albatross
    >>> ctx = albatross.SimpleContext('.')
    >>> ctx.locals.field = '<img src="http://rude.pictures.r.us/">'
    >>> albatross.Template(ctx, '<magic>', '''
    ... Safe: <al-value expr="field" whitespace>
    ... Oops: <al-value expr="field" noescape whitespace>
    ... ''').to_html(ctx)
    >>> ctx.flush_content()
    Safe: &lt;img src=&quot;http://rude.pictures.r.us/&quot;&gt;
    Oops: <img src="http://rude.pictures.r.us/">