CMS MADE SIMPLE FORGE

CGExtensions

 

[#12258] cgjs gives syntax error on multi-line html comments

avatar
Created By: Matt Hornsby (DIGI3) (DIGI3)
Date Submitted: Wed Feb 05 11:06:34 -0500 2020

Assigned To:
Version: 1.65.1
CMSMS Version: 2.2.13
Severity: None
Resolution: None
State: Open
Summary:
cgjs gives syntax error on multi-line html comments
Detailed Description:
When scripts contain html comments (I know... see below), cgjs accepts
single-line comments but not multi-line. e.g.:

{cgjs_add}
<!--- my comment -->
{/cgjs_add}
{cgjs_render}

will work, but

{cgjs_add}
<!--
my comment
has more than one line
-->
{/cgjs_add}
{cgjs_render}

Does not.

The easy workaround is obviously to remove these or comment them out in with
Smarty {* comment *} tags or javascript //comments, but as multi-line html
comments are included with popular scripts such as Google Remarketing, it's easy
to miss them.


History