I have created a codesandbox, where I am attempting to highlight multiple sections of an HTML textarea. I am not sure if this is possible. However, I would like to highlight an entire sentence, in addition to a word in the sentence (the highlights will overlap). I am able to highlight the word, however, when attempting to add a mark tag around the sentence, the tags do not display. Because the textarea will not display the mark tag. Can anyone advise on the best way to highlight overlapping HTML text? Please see codesandbox link for more details.