perlcgi has asked for the wisdom of the Perl Monks concerning the following question:
But if the template code expands into "Hello Fred's World" then you'll get a syntax error as the apostrophe in Fred's is interpreted as the end of the string.<script> var field = '$123'; document.write ('field'); </script>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template-output quoting (Warning: Contains JavaScript)
by dingus (Friar) on Dec 09, 2002 at 18:06 UTC | |
|
Re: Template-output quoting (Warning: Contains JavaScript)
by tachyon (Chancellor) on Dec 10, 2002 at 14:50 UTC | |
by perlcgi (Hermit) on Dec 11, 2002 at 10:34 UTC | |
by tachyon (Chancellor) on Dec 11, 2002 at 11:19 UTC | |
by perlcgi (Hermit) on Dec 11, 2002 at 12:49 UTC |