title: Truncate html text in django
body: <p>In django we can truncate text using Truncator class as</p>
  
  <pre><code>from django.utils.text import Truncator
  s = "&lt;div&gt;Please truncate this&lt;/div&gt;"
  Truncator(s).words(2, html=True)
  </code></pre>
  
  <p>This will  return with ellipsis so let's replace ellipsis with something else</p>
  
  <pre><code>truncate = "read more %(truncated_text)s"
  Truncator(s).words(2, html=True,truncate=truncate)
  </code></pre>
  
  <p>This returns <code>&lt;div&gt;Please truncateread more &lt;/div&gt;</code></p>
  
  <pre><code> truncate = "%(truncated_text)s read more" 
   Truncator(s).words(2, html=True,truncate=truncate)
  </code></pre>
  
  <p>this returns <code>&lt;div&gt;Please truncate read more&lt;/div&gt;</code></p>
  
  <p>But I would like to get  <code>read more &lt;div&gt;Please truncate&lt;/div&gt;</code></p>
  
  <p>This can be done by checking length of truncated text, is there any <strong>smart way</strong> to do this?</p>
  
  <p>Edit:<br/>
  If it's not possible can we get this <code>&lt;div&gt;Please truncate&lt;/div&gt;read more</code></p>