JSFiddle - React, Tailwind, and code Playground

by matthewbj

HTML

<div>This should change to a Paragraph</div>

<div class="myClass">This should not</div>

CSS

p {background-color:#333; color:#fff}

div {background-color:#c00; color:#fff}

JavaScript

$('div:not([class])').contents().unwrap().wrap('<p/>');