]]> and the browser will not parse such result.
In the example above, the output JS code is simply destroyed. Here it's a place for
opt:literal. We can enclose our JS code inside it, and then the template CDATA sections will not be rewritten to the output. Instead,
opt:literal will generate its own CDATA beginning and end that encloses the complete code:
opt:literal offers you more decorators. It can be used to generate dynamic HTML comments or simply to hide the existence of CDATA sections from the browser. The behavior may be chosen with the following attribute:
|type||ID||No||cdata||What to display?|
Allowed values are:
cdata- enclose the tag content with
]]>, like in the example above.
comment_cdatamode to solve this problem.
comment_cdata- enclose the tag content with
/* <![CDATA[ */and
/* ]]> */.
comment- enclose the tag content with HTML comment tags
transparent- do not enclose the content with anything.