For example I have a string with html code.
const string = `
<div>
<h1>Title</h1>
<h2>Subtitle</h2>
<div class="find-me">text</div>
</div>
`;
Expected result with JS script:
<div class="find-me">text</div>
How it's possible to do it without jquery and other libraries/frameworks ?