This shows you the differences between two versions of the page.
en:public:developer:template_system:tags:parameters:jsencode [2013/01/28 16:59] admin |
en:public:developer:template_system:tags:parameters:jsencode [2013/01/28 17:42] (current) admin [Example] |
||
---|---|---|---|
Line 4: | Line 4: | ||
converted to the format accessible for Javascript-output. Managing characters for Javascript | converted to the format accessible for Javascript-output. Managing characters for Javascript | ||
(like quotes, equal signs etc) will be escaped. | (like quotes, equal signs etc) will be escaped. | ||
+ | |||
+ | **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 | ||
+ | [[en:public:developer:template_system:tags:parameters:AnalyzeTagParams]] | ||
==== Values ==== | ==== Values ==== | ||
Line 13: | Line 17: | ||
==== Example ==== | ==== Example ==== | ||
- | <#JavascriptVar setValue="var test = 1;"> | + | <#JavascriptVar setValue="var test = '1';"> |
<#JavascriptVar JsEncode="1"> | <#JavascriptVar JsEncode="1"> | ||
Output: | Output: | ||
- | var test \u003D 1\u003B | + | var test = \u00271\u0027; |