@oxymoron
Thank you for fixing it so fast.
There is another issue.
It doesn’t escape double quotes correctly.
Try the code below
<script>
$(“.post-page-content”).prepend(“<h1 id=\”tmp\”>hello world</h1>”);
</script>
\” will be unescaped to ”
But these code works well:
<script>
$(“.post-page-content”).prepend(‘<h1 id=\’tmp\’>hello world</h1>’);
</script>
<script>
$(“.post-page-content”).prepend(‘<h1 id=”tmp”>hello world</h1>’);
</script>
<script>
$(“.post-page-content”).prepend(“<h1 id=’tmp’>hello world</h1>”);
</script>
You are supposed to see the <h1> element on the page.