JSFiddle - React, Tailwind, and code Playground

by gbkim1988

HTML

<div id="log">Test passed</div>

JavaScript

$("#log").html(
    $("element[attribute='<div><strong>you should not see this</strong></div>']").html()
);