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('<p style="background:url(javascript:alert(1))">');
alert(s);
</script>