[Javascript] If a string contains many ' and ", how to deal withit injavascript?

alwang at micron.com alwang at micron.com
Tue Jul 1 10:49:39 CDT 2003


I tried it, seems it can not work quite well in javascript.
for example:

str = "this is a 'test' and \"double quote\"";
<input type='text' value=str>
will just show 
this is a 'test' and \

Any good idea?
Thanks,
Alex.


-----Original Message-----
From: Dan Costea [mailto:costea.dan at ssi-schaefer.ro]
Sent: Tuesday, July 01, 2003 8:40 AM
To: [JavaScript List]
Subject: Re: [Javascript] If a string contains many ' and ", how to deal
withit injavascript?


str = "the string can have ' and \" too.";
alert (str);

If you need more, please be more specific.

Regards,
Dan.


----- Original Message -----
From: <alwang at micron.com>
To: <javascript at LaTech.edu>
Sent: Tuesday, July 01, 2003 6:34 PM
Subject: [Javascript] If a string contains many ' and ", how to deal with it
injavascript?


>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


More information about the Javascript mailing list