title: How to read part of a html coded article from database like MySQL?
body: <p>I am trying to write a blog system. The main page is consist of part of the content of blog entries. </p>
  
  <p>The problem is how could I make sure the excerpt is truncated correctly, since the blog entries is stored in HTML code.</p>
  
  <p>Thanks.</p>