title: How to truncate html without breaking the tags?
body: <p>How to ensure that all html-tags were closed? The problem arises because I want create some sort of excerpt for every article. For example someone writes an article like this:</p>
  
  <pre><code>Hi everyone, I'm just an article and I have few &lt;strong&gt;tags&lt;/strong&gt; inside &lt;em&gt;of me&lt;/me&gt;
  </code></pre>
  
  <p>If I cut this message just after "tags", I get an unclosed tag .
  How can I check with Django all user's input text before saving it to DB?</p>