motomac Posted December 23, 2015 Share Posted December 23, 2015 I put simple JS code into a hook: <script type='text/javascript'> var a = "<div>"; var b = "</div>"; </script> But in the page it renders like: <script type="text/javascript"> var a = "<div>"; var b = ""; </script> Why? Link to comment Share on other sites More sharing options...
Mark Posted December 24, 2015 Share Posted December 24, 2015 That sounds like a bug. Link to comment Share on other sites More sharing options...
motomac Posted December 25, 2015 Author Share Posted December 25, 2015 @Mark I reported it here: https://community.invisionpower.com/4bugtrack/active-reports/4152-closing-html-tags-in-js-variables-are-cut-by-the-template-parser-r9651/ Please, provide a patch If you confirm it. I can't proceed with my plugin because of this bug. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.