code: function replaceBadCharacters( text ) {
    var i, repl;
    for ( i = 0; i < rLen; i++ ) {
      repl = replacements[i];
      text = text.replace( repl[0], repl[1] );
    }
    return text;
  }
docs: replace nasty quotes with simple ones