Forum Moderators: open
I've been making some modification to a piece of software that works using smarty templates. I've edited a tpl file and added a couple of textareas. One textarea for CSS code and another for HTML code - for the visitor to copy and paste to their website.
However the page fails to display, and comes up blank. I finally narrowed this down to the { and } symbols in the CSS section. It also didn't like the HTML stuff but I added the < and > characters in their other way - < >
Does anyone know how to put the { symbols in the textarea correctly. Is there an alternative to it, like I did with the > character.
Thanks,
Tim
{ = {
} = }
But as CSS pasted into a form I'm not sure if that will work. in other words, you may get a style like this:
.mystyle { font-weight:700; }
In a query string, the hex equivalents are
%7B = {
%7D = }
Probably something the software is doing with those, not sure.