JSFiddle - React, Tailwind, and code Playground

by yourbudweiser

HTML

<div id="id1">
 <p>
   world wide web
 </p>
 <p>
   weebles wobble but they don't fall down
 </p>
</div>

CSS

span {
  color: red;  
}

JavaScript

$('#id1 p').each(function() {
        var text = $(this).html();
        $(this).htmlt(text.replace('w', '<span>w</span>')); 
    });