📅  最后修改于: 2022-03-11 15:02:37.934000             🧑  作者: Mango
//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, '...');