I met some trouble with a javascript.
In fact I have in my database many records that are abreviations and ther equivalent,
for example, replace tel => telephon
This should work:
$('#tags').keyup(function(e){ var code = e.which ? e.which : e.keyCode; var input = this.value; if (input.indexOf('tel') != -1) { this.value = this.value.replace(/\btel\b/gi,'telephone'); } });
Here is a fiddle