in reply to Re^4: Perl, JavaScript and quoting/escaping
in thread Perl, JavaScript and quoting/escaping
I'm surprised that (qq{\'\'} eq q{''}; wouldn't this be eq q{''}?
Still makes no sense to me.
" VS "e;
So you're asking how to embed double quotes in a JS double-quoted string literal? This isn't really an appropriate place to ask that. One escapes them with a backslash:
alert("foo \"bar\" baz"); // foo "bar" baz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl, JavaScript and quoting/escaping
by Anonymous Monk on May 06, 2011 at 06:03 UTC |