Jump to content

Wikipedia:AutoEd/unicodecontrolchars.js

From Wikipedia, the free encyclopedia
function autoEdUnicodeControlChars(str) { //MAIN FUNCTION describes list of fixes

  //Removes unneeded Unicode control characters
  str = str.replace(new RegExp('\u200E|\uFEFF|\u200B', 'gi'), '');

  return str;
}