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

Chris Tifer christ at saeweb.com
Tue Jul 8 08:28:58 CDT 2003


That example you're using below is not even JavaScript.


----- Original Message -----
From: <alwang at micron.com>
To: <javascript at LaTech.edu>
Sent: Tuesday, July 01, 2003 11:49 AM
Subject: RE: [Javascript] If a string contains many ' and ", how to
dealwithit injavascript?


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
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list