79075018

Date: 2024-10-10 15:01:13
Score: 0.5
Natty:
Report link

If you really need to take this approach, there's not even a need to escape anything.

Just use new_s.innerText = '<example>';.

const myText = "<example>";

new_s.innerText = myText;
<div id="new_s"></div>

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user2804429