Is it possible to insert unencoded text to an Element?
zhenyi opened this issue · 0 comments
zhenyi commented
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?