I'm trying to use KnockoutJS in my web framework, which uses plain Smarty.
Some parts of KnockoutJS's syntax use comments in the form of <!-- ko foreach: array -->
.
Smarty strips all HTML comments (except IE conditionals), including these ones.
I can remove the responsible preg_replace
line in Smarty, but I'd rather have solution where I don't have to change third party code.
Is there any way to skip the comment stripping in Smarty?