JSFiddle - React, Tailwind, and code Playground

by Neal

HTML

<parent><child>i want to keep the child</child>Some text I want to remove</parent>

JavaScript

var child = $('parent').children('child');

$('parent').html(child);