title: DOM check a node exist with html content
body: <p>I have a XML content</p>
  
  <pre><code>&lt;p&gt;
      This is my &lt;em&gt;Styled&lt;/em&gt; content.
  &lt;/p&gt;
  </code></pre>
  
  <p>What I need to do is check the string </p>
  
  <pre><code>This is my &lt;em&gt;Styled&lt;/em&gt; content.
  </code></pre>
  
  <p>exits on the DOM. How do i do this? I tried using XPath text() but that strips out the <code>&lt;em&gt;</code>. Any pointers to this? </p>