]> gitweb.factorcode.org Git - factor.git/commitdiff
html.templates.chloe: use cdata comment trick.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 11 Feb 2022 23:33:33 +0000 (15:33 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 11 Feb 2022 23:33:33 +0000 (15:33 -0800)
basis/html/templates/chloe/chloe.factor

index 84064565b0959b67708f6d9c18f3e783038f4617..630d0851f58748564d24e4287416cd887cd042b9 100644 (file)
@@ -46,8 +46,8 @@ CHLOE: script
 
 CHLOE: write-script
     drop [
-        get-script xml.data:<cdata>
-        [XML <script type="text/javascript"> <-> </script> XML]
+        get-script "*/" "/*" surround xml.data:<cdata>
+        [XML <script type="text/javascript">/* <-> */</script> XML]
     ] [xml-code] ;
 
 CHLOE: meta