Stripping html - dos, don'ts and more
TL;DR: Use template (not div) and textContent (not innerText).
To boldly go where countless others have gone before.
TL;DR: Use template (not div) and textContent (not innerText).
TL;DR: If you need a double rAF() for a transition to work, getComputedStyle().opacity may be a cheap, synchronous alternative.