title: Given a string of html, how would i search and highlight a word?
body: <p>I don't have access to external libraries of any kind so I have to use pure javascript.</p>
  
  <p>The input I'm getting is along the lines of:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>"&lt;html&gt;
    &lt;body&gt;
      &lt;p&gt;Test&lt;/p&gt;
    &lt;/body&gt;
  &lt;/html&gt;"</code></pre>
  </div>
  </div>
  </p>
  
  <p>The goal would be to highlight the word test.</p>
  
  <p>I've thought about splitting the string by linebreak then doing an includes search on the resulting array to find my keyword, but then I wouldn't be sure about how to add a class/element to the <p> tag.</p>
  
  <p>Any ideas?</p>