Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
convert() {
var self = this;
var inputPrime = self.input.replace(/[.,\/#!$%\^&\*;:{}=\-_`~()]/g,"");
inputPrime = inputPrime.replace(/\s{2,}/g," ");
output = pinyinify(inputPrime);
$('#output_text').html(output);
}
}