JSFiddle - React, Tailwind, and code Playground
by skram
HTML
<div class="category-info">
<p>text 1</p><hr><p>text 2</p>
</div>
CSS
.news-part { color: blue; }
JavaScript
var str = $('.category-info').html();
str = str.split('<hr>');
$('.category-info').html(str[0] + '<div class="news-part">' + str[1] + '</div>');