original_string: private function createDOMDocumentFromHTML($html = null) {
  
          if ($html != null) {
              libxml_use_internal_errors(true);
              $dom = new DOMDocument;
              $dom->loadHTML($html);
              libxml_clear_errors();
              libxml_use_internal_errors(false);
              return $dom;
          }
      }
code: private function createDOMDocumentFromHTML($html = null) {
  
          if ($html != null) {
              libxml_use_internal_errors(true);
              $dom = new DOMDocument;
              $dom->loadHTML($html);
              libxml_clear_errors();
              libxml_use_internal_errors(false);
              return $dom;
          }
      }
code_tokens: private function createDOMDocumentFromHTML ( $ html = null ) { if ( $ html != null ) { libxml_use_internal_errors ( true ) ; $ dom = new DOMDocument ; $ dom -> loadHTML ( $ html ) ; libxml_clear_errors ( ) ; libxml_use_internal_errors ( false ) ; return $ dom ; } }
docstring: checkContentHasSubtitles.
  check if page Content has a h2's in it
  
  @param HTMLText $html String
  @return DOMDocument Object
docstring_tokens: checkContentHasSubtitles . check if page Content has a h2 s in it