JSFiddle - React, Tailwind, and code Playground
HTML
<div class="blog-container">
<div class="each-article">
<p>
Text text text <br/> text text text</p>
</div>
<div class="each-article">
<p>Text text text <br/> text text text</p>
</div>
</div>
JavaScript
$('.each-article p').each(function() {
$(this).contents().filter(function() {
return this.nodeType == 3;
}).wrap('<span></span>');
});