JSFiddle - React, Tailwind, and code Playground
HTML
<body></body>
JavaScript
var evil='http://evil.com">script here</a><a';
$('body').append('<a href="'+evil+'">html</a>');
$('body').append($(document.createElement('a')).attr('href', evil).text('dom'));