Remix.run Logo
piccirello 8 hours ago

`setHTML` is meant as a replacement for `innerHTML`. In the use case you describe, you would have never wanted `innerHTML` anyway. You'd want `innerText` or `textContent`.

iLoveOncall 5 hours ago | parent [-]

But that's what setHTML isn't at all a replacement for innerHTML.

You still need innerHTML when you want to inject HTML tags in the page, and you could already use innerText when you didn't want to.

Having something in between is seriously useless.

Dylan16807 3 hours ago | parent [-]

> You still need innerHTML when you want to inject HTML tags in the page

What makes you say this?