title: JavaScript to add HTML tags around content
body: <p>I was wondering if it is possible to use JavaScript to add a &lt;div&gt; tag around a word in an HTML page.</p>
  
  <p>I have a JS search that searches a set of HTML files and returns a list of files that contain the keyword. I'd like to be able to dynamically add a &lt;div class="highlight"&gt; around the keyword so it stands out.</p>
  
  <p>If an alternate search is performed, the original &lt;div&gt;'s will need to be removed and new ones added. Does anyone know if this is even possible?</p>
  
  <p>Any tips or suggestions would be really appreciated.</p>
  
  <p>Cheers,</p>
  
  <p>Laurie.</p>