User Tools

Site Tools


en:public:developer:template_system:tags:parameters:htmlencode

This is an old revision of the document!


Table of Contents

HtmlEncode

Parameter “HtmlEncode” specifies that the value of corresponding variable or result of function must be HTML-encoded. HTML encoding means converting the text to format accessible to browsers according to the HTML standards. Control characters will be converted to their HTML-analogues.

If you're interested you can read more in WikiPedia.

NOTE: By default the resulting content will be parsed (all <#..> tags will be evaluated) before to apply this filter. You can control this behavior throught the parameter AnalyzeTagParams

Values

Value Description
1 Means that value must be html-encoded.
0 Means that value must be html-decoded.

Note

If the Result string that must be html Encoded contain some tags (like for exemple <#MyTag>), then theses tags will be first evaluated before to be HTML encoded, unless the Parameter analyzetagparams=0 is present (in this way the tags will be left untouched)

Example

<#BusinessActivity setValue="Health & beauty">
<#BusinessActivity HtmlEncode="1">

Output:

Health &#38; beauty
en/public/developer/template_system/tags/parameters/htmlencode.1359379184.txt.gz · Last modified: 2013/01/28 17:19 by admin