Answers for "make all apostrophe in string curled javascript"

0

javascript replace ios apostrophe

//replace all ios/iphoneX weirdness ie:’‘”“ em dashes and ellipses
str = str.replace("”", '"').replace("“", '"').replace("’","'").replace("‘","'").replace(/[u2018u2019]/g, "'").replace(/[u201Cu201D]/g, '"').replace(/[u2013u2014]/g, '-').replace(/[u2026]/g, '...');
Posted by: Guest on February-20-2020

Code answers related to "make all apostrophe in string curled javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language