title: DOMXPath does not print HTML-source in <pre><code>...</code></pre> on screen
body: <p>I created a little script that modifies the output of a specific page:</p>
  
  <pre><code>foreach ( $markers as $marker ) {
      foreach ( $xpath-&gt;query( '//text()[not(ancestor::a) and not(ancestor::pre) and not(ancestor::code) and not(ancestor::img) and not(ancestor::script) and not(ancestor::style)]' ) as $node ) {
          $text     = $marker[ 'text' ];
          $url      = $marker[ 'url' ];
          $tip      = strip_tags( $marker[ 'excerpt' ] );
          $tooltip  = ( $tooltip ? "data-uk-tooltip='' title='$tip'" : "" );
          $replaced = preg_replace(
              '/\b' . preg_quote( $text, "/" ) . '\b/i',
              "&lt;a href='$url' $hrefclass target='$target' $tooltip&gt;\$0&lt;/a&gt;",
              $node-&gt;wholeText
          );
          $newNode  = $dom-&gt;createDocumentFragment();
          $newNode-&gt;appendXML( $replaced );
          $node-&gt;parentNode-&gt;replaceChild( $newNode, $node );
      }
  }
  
  $event-&gt;setContent( utf8_encode( $dom-&gt;saveHTML()) );
  </code></pre>
  
  <p>Now I got a problem:</p>
  
  <p>If the page-content contains a <code>&lt;pre&gt;&lt;code&gt;&lt;strong&gt;some-content&lt;/strong&gt;&lt;/code&gt;&lt;/pre&gt;</code>  the elements are not displayed as text - they are getting parsed as source code.</p>
  
  <p>So it does not display the text <code>&lt;strong&gt;some-content&lt;/strong&gt;</code> but parses it and displays <strong>some-content</strong></p>