title: substring a text with html tags using css break word or something?
body: <pre><code>var txt = 'Some texts, html tags &amp; all values i can enter through text box';
  txt= txt.substring(0,255)+'...';
  </code></pre>
  
  <p>Can i do this thing using css?</p>
  
  <p>My problem is if <code>txt</code> contains HTML tags, after doing a sub string the closing tag gets missing and it will break.</p>