JSFiddle - React, Tailwind, and code Playground

HTML

<div>
<p>This is a test ! sentence</p>
</div>

<p>hi yall ! i love apple
</p>

JavaScript

var str = jQuery('p').html();
str = str.replace('!', '<br />');
jQuery('p').html(str);