Answers for "reactjs fix ios apostrophe encoding"

0

reactjs fix ios apostrophe encoding

//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"

Browse Popular Code Answers by Language