I want to replace the smart quotes like ‘ ’ " " – —‘, ’, " and " to regular codesquotes. Also, I wanted to replace the © ® TM©, ® and TM. I used the following code. But it doesn't help.
Kindly help me to resolve this issue.
str.replace(/[""]/g, '"'); str.replace(/[‘’]/g,"'");
str.replace(/[""]/g, '"');
str.replace(/[‘’]/g, "'");
I want to replace the smart quotes like ‘ ’ " " – — to regular codes. Also, I wanted to replace the © ® TM. I used the following code. But it doesn't help. Kindly help me to resolve this issue.
str.replace(/[""]/g, '"'); str.replace(/[‘’]/g,"'");
I want to replace the smart quotes like ‘, ’, " and " to regular quotes. Also, I wanted to replace the ©, ® and TM. I used the following code. But it doesn't help.
Kindly help me to resolve this issue.
str.replace(/[""]/g, '"');
str.replace(/[‘’]/g, "'");
Replace method doesn't work
I want to replace the smart quotes like ‘ ’ " " – — to regular codes. Also, I wanted to replace the © ® TM. I used the following code. But it doesn't help. Kindly help me to resolve this issue.
str.replace(/[""]/g, '"'); str.replace(/[‘’]/g,"'");