JSFiddle - React, Tailwind, and code Playground

HTML

<div id="boxee">
<script type="foo/bar">
  do something here
</script>
</div>

<div id="other">
  
</div>

<pre id="disp">
</pre>

JavaScript

a = $("[type='foo/bar']").detach()

// clone kills the script contents in ie
$("#other").prepend( a.clone() )

$("#disp").text($("#other").html())