JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://rawgithub.com/krux/postscribe/master/htmlParser/htmlParser.js"></script>
<script src="https://rawgithub.com/krux/postscribe/master/dist/postscribe.js"></script>
<script>
    document.write("hello world");
</script>
<div id="fillme"></div>
<input type="button" id="button" value="no Postscribe" />
<input type="button" id="button2" value="Postscribe" />

JavaScript

$(function () {
    $("#button").click(function () {
        $.ajax({
            type: "POST",
            url: "/echo/html/",
            data: {
                html: "<script>document.write(\"second hello world\")</scr" + "ipt>"
            }
        })
            .done(function (msg) {
            $("#fillme").html(msg);
        })
    });

    $("#button2").click(function () {
        $.ajax({
            type: "POST",
            url: "/echo/html/",
            data: {
                html: "<script>document.write(\"second hello world\")</scr" + "ipt>"
            }
        })
            .done(function (msg) {
            postscribe('#fillme', msg);
        })
    });

});