input|wash( [type] )
Name | Type | Description | Required |
---|---|---|---|
type | string | The type of text that should be washed. | No. |
This operator translates the input string into an HTML friendly version. It will take care of converting bogus characters to HTML-friendly replacements. The "type" parameter can be used to specify the washing type, it can be set to either "xhtml" or "email" (the default is "xhtml"). E-mail washing can be controlled using the setting of the [WashSettings] configuration block of "template.ini". All strings that may break the HTML should always be washed using this operator.
{'Bogus & stuff <'|wash()} The following output will be produced: "Bogus & stuff <".
{'hello@example.com'|wash( 'email' )}
The following output will be produced:
hello<span class="spamfilter">SPAMFILTER</span>@example.com
{'hello@example.com'|wash( 'email' )}
If a configuration override for "template.ini" exists and contains...
[WashSettings] EmailDotText=[dot] EmailAtText=[at]
...the following output will be produced: "hello[at]example[dot]com".
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.