Cveinnt / bionify

Convert any webpage into bionified text!
https://bionify.xyz
GNU General Public License v3.0
237 stars 18 forks source link

Don't sanitize node.textContent #14

Open jacobhanson1010 opened 2 months ago

jacobhanson1010 commented 2 months ago

"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.