I have some span
with some words in it, like
<span id="phrase">Here are some words</span>
I need to color all the 'e'
characters red.
I think of taking the span.innerText property
, remove text node from span element and add some more spans inside (or instead), and give them necessary style.
Is it the only way, or it could be solved in a more elegant way?