JSFiddle - React, Tailwind, and code Playground

JavaScript

$.post('/echo/html/', {
    html: '<div><scr' + 'ipt id="movieTemplate" type="text/x-jquery-tmpl">foobar</sc' + 'ript><span></span></div>'
}, function(html) {
    alert('Contents: ' + $(html).find('script').length );
    alert('Contents: ' + $(html).find('span').length );
}, 'html');