badami
asked on
JAVASCRIPT : Handling Single Quotes and Double quotes
What is the best way to handle single and double quotes.
This causes lot of Javascripts to break if they are not properly escape sequenced.
This causes lot of Javascripts to break if they are not properly escape sequenced.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
always insert single quotes in double quotes.
That won't work if you have mixed quotes in a string variable. Been there, tried that... ;-)
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
points to webwoman
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
ahosang
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
points to webwoman
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
ahosang
EE Cleanup Volunteer
per recommendation
SpideyMod
Community Support Moderator @Experts Exchange
SpideyMod
Community Support Moderator @Experts Exchange