[thelist] [JavaScript] Avoid Escaping Characters
Scott Brady
evolt at scottbrady.net
Mon May 24 10:09:05 CDT 2004
Original Message:
> From: Hershel Robinson <hershelr at netvision.net.il>
> Some languages have a method to define a string literal wherein what would
> normally be an escape character is not treated as such, rather the escape
> character is taken literally. So \n would be two characters, not one special
> one.
>
> Does such a feature exist in JavaScript? I am not aware of one.
I haven't tried this, but did you try "\\n"? (where "\\" should escape the "\" and display it as a \)
Scott
----------------------------
Scott Brady
http://www.scottbrady.net/
More information about the thelist
mailing list