title: TFHpple - getting element HTML without element's tags?
body: <p>I'm parsing some HTML and I need to get all the innerHTML of <code>&lt;body /&gt;</code>. I'm doing it this way:</p>
  
  <pre><code>TFHpple *doc = [[TFHpple alloc] initWithHTMLData:[NSData dataWithContentsOfFile:sectionFilePath]];
  TFHppleElement *body = [doc searchWithXPathQuery:@"//body"][0];
  
  NSString *bodyHTML  = body.raw;
  </code></pre>
  
  <p>However this returns:</p>
  
  <pre><code>&lt;body&gt;stuff inside body&lt;/body&gt;
  </code></pre>
  
  <p>instead of just:</p>
  
  <pre><code>stuff inside body
  </code></pre>
  
  <blockquote>
    <p><strong>Question:</strong> Is there any way to get the purely the inner HTML of an element, excluding its own tags?</p>
  </blockquote>
  
  <p>I came up with this method, but I feel like I'm reinventing the wheel here. This method is also quite slow.</p>
  
  <pre><code>TFHppleElement *child;
  for(int i = 0; i&lt;body.children.count; i++){
      child = (TFHppleElement*)body.children[i];
  
      if(child.raw != nil) [bodyHTML appendString:child.raw];
      else if(child.content != nil) [bodyHTML appendString:child.content];
  }
  </code></pre>