Answers for "javascript replace ios apostrophe"

0

javascript replace ios apostrophe

//replace all ios/iphoneX weirdness ie:’‘”“ em dashes and ellipses
str = str.replace("”", '"').replace("“", '"').replace("’","'").replace("‘","'").replace(/[\u2018\u2019]/g, "'").replace(/[\u201C\u201D]/g, '"').replace(/[\u2013\u2014]/g, '-').replace(/[\u2026]/g, '...');
Posted by: Guest on February-20-2020

Code answers related to "javascript replace ios apostrophe"

Code answers related to "Javascript"

Browse Popular Code Answers by Language