JSFiddle - React, Tailwind, and code Playground
by adam smth
HTML
<p> A </p>
<p> B </p>
<p> C </p>
CSS
span{font-size: 24px; color: red}
JavaScript
$('p').replaceWith(function(){
return $("<span />", {html: $(this).html()});
});
by adam smth
<p> A </p>
<p> B </p>
<p> C </p>
span{font-size: 24px; color: red}
$('p').replaceWith(function(){
return $("<span />", {html: $(this).html()});
});