"sanitizing" each node.textContent by replacing reserved HTML characters with their respective HTML entity representations causes them to be split up by the bionifyWord function. Instead, treat them as is, until finally escaping any instances before putting them in the newNode.innerHTML.
From what I found, only < and & are reserved HTML characters. We can amend this, if necessary.
"sanitizing" each
node.textContent
by replacing reserved HTML characters with their respective HTML entity representations causes them to be split up by thebionifyWord
function. Instead, treat them as is, until finally escaping any instances before putting them in thenewNode.innerHTML
.From what I found, only
<
and&
are reserved HTML characters. We can amend this, if necessary.