title: Trying to get the plaintext using php domdocument
body: <p>I am trying to get the plaintext from the given html. But, it is not possible for me.
  for this, what I had done is</p>
  
  <p>My html is in <code>$content</code> variable</p>
  
  <p>Now, I am passing $content variable to php DomDocuemnt</p>
  
  <pre><code>$d = new DOMDocument();
  @$d-&gt;loadHTML($content)
  </code></pre>
  
  <p>Whats my next step to get the plaintext from the obtained html.</p>
  
  <p>Please help me in this. Thanks in advance!</p>