JSFiddle - React, Tailwind, and code Playground

HTML

<div class="example">My sentence: xxxxxx</div>

JavaScript

$('body').append("text = >"+$('.example').text().split(':')[1]);