Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js replace single quote with doubel quote

//Removing all the single quotes from a string. 
var outputstr= inputstring. replace(/'/g,'');

//Replacing all the single quotes with double quote in a string. 
var outputstr= inputstring.replace(/'/g,'"');
Source by dotnetlearners.com #
 
PREVIOUS NEXT
Tagged: #js #replace #single #quote #doubel #quote
ADD COMMENT
Topic
Name
2+1 =