Html – How to replace the phrase and not the word within the phrase?
I am developing a feature in my app that searches through the text and abbreviates words/phrases while the user is inputting the text. let dictionary = { "M": { "Mobile telephone number": "M/TEL" }, "T": { "Telephone": "TEL" } };…