User Tools

Site Tools


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

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.

Example

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

Output:

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