Closed zhenyi closed 3 years ago
For example, if I try to do this:
scriptElement.html("if (a && b) { doThings(); }")
I will get:
<script> if (a && b) { doThings(); } </script>
Instead of:
<script> if (a && b) { doThings(); } </script>
How do I set the innerHTML of an Element without encoding the content?
For example, if I try to do this:
I will get:
Instead of:
How do I set the innerHTML of an Element without encoding the content?