I hope you are well. So, as you can see, from "a-z" I have made a code to transcript every common letter (from "a" to "z") in some symbols. How can I do it when I want to transcript the letters "th" together in different symbol? I do not want the app to translate the letters "t" and "h" separately BUT together! How can I do that? Thank you so much!!!
var theInput = txtBr.value.toLowerCase();
for (var i = 0; i < theInput.length; i++)
{
var letter = theInput.charAt( i );
if( letter.match(/[a-z\s]/i) ) {
var symbol = map[ letter ];
txtarea.innerHTML += symbol;
}