JSFiddle - React, Tailwind, and code Playground

by James Allardice

HTML

<div id="hwiTestimonial">
    " Bla bla" 
    <br/>
    <div>....</div>
</div>

JavaScript

$("#hwiTestimonial").contents().filter(function () {
    return this.nodeType === 3; // Text nodes only
}).remove();