supressing CDATA

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
yonatanlehman
Propeller Head
Posts: 51
Joined: Mon Sep 18, 2017 6:14 am

supressing CDATA

Post by yonatanlehman »

Hi
I'm using handlebars templates in a topic. This means that I need to insert a template like this.

<script id="params-template" type="text/x-handlebars-template">
{{#myhelper '}}
some content
{{/myhelper }}
</script>

My problem is that when I build the output, Flare is adding CDATA and javascript comments (see below in below in bold)
- since this is not javascript the comments appear as part of the template text and appear in the output.

<script id="params-template" type="text/x-handlebars-template">/* <![CDATA[ */
{{#myhelper '}}
some content
{{/myhelper }}
/* ]]> */</script>

Does anyone know how I can suppress generating the CDATA and the comments - or at least just the comment?
Thanks
Post Reply