MediaWiki:Gadget-GlobalScript.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 17: Line 17:
for (var i = 0; i < textAreas.length; i++) {
for (var i = 0; i < textAreas.length; i++) {
if ($(textAreas[i]).length)
if ($(textAreas[i]).length)
$(textAreas[i]).val($(textAreas[i]).val().replace(/[\u200B-\u200F\uFEFF]/g, '').replace(/[‘’]/g, "'").replace(/[“”]/g, '"'));
$(textAreas[i]).val($(textAreas[i]).val().replace(/[\u200B-\u200F\uFEFF]/g, '').replace(/[‘’]/g, "'"));
}
}
}
}