I'm using Smarty. The problem involves misinterpretting opening and closing quotes when the source will be changed before arriving at the user's browser. In my templates I have something like this:
<tr
onclick="location.href='{$folder}/{$file.filename|escape:"javascript"}'">
which turns into this:
<tr javascript="" onclick="location.href='{$folder}/{$file.filename|escape:">
Obviously problems like this break the scripts and make the page unusable. What are my options?
I'm guessing I can play around with the quote marks used in various places until it works, but is there something I can do to avoid going through all the templates already on the site? And if I *have* to do this what unix shell tools can I use with what regular expression to find all the files that will give me problems?
You guys are the best
Sun, 12/04/2005 - 14:18
#1