JSFiddle - React, Tailwind, and code Playground
HTML
<script type="text/javascript">
function test(string) {
var match = /(=|(U\s*R\s*L\s*\())\s*("|\')?[^>]*\s*S\s*C\s*R\s*I\s*P\s*T\s*:/i.test(string);
return match ? 'match :(' : 'bypass :)';
}
var s=test('<iframe src="jaVAscRipT:alert(1)">');
alert(s);
</script>