JSFiddle - React, Tailwind, and code Playground
by Mahngiel
HTML
<div>
<li>
<script> document.write('one'); </script> (<span>0</span>)
</li>
<li>
<script> document.write('two'); </script> (<span>2</span>)
</li>
<li class=solo>
three (<span>3</span>)
</li>
</div>
CSS
div {background-color: #f1f1f1;}
JavaScript
/* uncomment to test
$('li').each(function() {
// remove parens
$(this).html( $(this).html().replace(/\(<span/g, '<span').replace(/span>\)/g, 'span>') );
});
*/
// no embedded script element
$('.solo').each(function() {
// remove parens
$(this).html( $(this).html().replace(/\(<span/g, '<span').replace(/span>\)/g, 'span>') );
});