JSFiddle - React, Tailwind, and code Playground

by skydivematy

HTML

<div class="disqus-comment-count" style="margin-left: 1.5em;">
<a href="/view/magnus-olsson-a-very-inspirational-man/#disqus_thread" data-disqus-identifier="news_43">0 Comments and 0 Reactions</a>

</div>

CSS

.indent {
    background: blue;
    margin-right:5px;
}

JavaScript

$('.disqus-comment-count a').each(function () {
    var txtArr = $(this).text().split(' ');

    $(this).before('<span class="indent">' + txtArr[0] + '</span>')

    txtArr.shift()
    $(this).text(txtArr.join(' '))

});