Echo or Print Javascript using Smarty variable


I want to know how to show javascript using smarty variable.

$jscode ="


In smarty file


Currently it shows javascript code instead executing it.

Any Idea?


Probably you have auto escaping turned on. Try the nofilter modifier.

Thanks :slight_smile:

This solution works.

{$CODE|escape nofilter}

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.