JSFiddle - React, Tailwind, and code Playground

by alanhogan

HTML

<div id="z"></div>
<div id="z2"></div>

JavaScript

x = $('<div>what&lt; up{{}}&lt;br /&gt;</div>');
    
$('#z').html(x);

x = $("{{ABC}}&lt;br&gt;\nvia Y {{Z}}");

$('#z2').html(x);

// In IE9, the second line that starts with 'x' gives this error:
// Line: 4512
// Error: Syntax error, unrecognized expression: {{ABC}}&lt;br&gt;
// via Y {{Z}}