Weilbyte / tiktok-tts

Generate TikTok Text-to-Speech voices in your browser
https://weilbyte.github.io/tiktok-tts/
MIT License
395 stars 84 forks source link

Use textContent instead of innerHTML #5

Closed isovel closed 2 years ago

isovel commented 2 years ago

Replaced all instances of Node.innerHTML with Node.textContent. Node.innerHTML is an unsafe way of setting user generated text, as it allows for arbitrary injection of html tags.

Weilbyte commented 2 years ago

hmm yeah, was quickly put together so i forgot about this. thanks.