Closed c-gross closed 2 years ago
Own Mustache.js templates written as inline script tags are getting escaped which is destroying the result html. Tried using nocompress tag but did not help.
<script id="test-tpl" type="x-tmpl-mustache"> <span>Foo</span> </script>
Result:
<script id="test-tpl" type="x-tmpl-mustache"> <span>Foo<\/span> </script>
@c-gross can you try overwriteSpecialScriptTags
overwriteSpecialScriptTags
$htmlMin = new voku\helper\HtmlMin(); $htmlMin->overwriteSpecialScriptTags(['x-tmpl-mustache']);
Amazing, it's working with that option.
What is this feature about (expected vs actual behaviour)?
Own Mustache.js templates written as inline script tags are getting escaped which is destroying the result html. Tried using nocompress tag but did not help.
How can I reproduce it?
Result: