JSFiddle - React, Tailwind, and code Playground

HTML

<div>
</div>

JavaScript

/* No XSS here, parseHTML returns an empty string */

var input = "<"+"script>alert('hello');"+"<"+"/"+"script>";
$($.parseHTML(input)).appendTo("body");