Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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, '...');
 
PREVIOUS NEXT
Tagged: #javascript #replace #ios #apostrophe
ADD COMMENT
Topic
Name
4+1 =