update to replace words that are connected to html entities