title: cut text after (x) amount of characters
body: <p>This is in wordpress (not sure that makes a difference)</p>
  
  <p>This bit of php outputs the post title</p>
  
  <pre><code>&lt;?php echo $data['nameofpost']; ?&gt;
  </code></pre>
  
  <p>It's simple text which can be anywhere up to 100 chars long. What i'd like is if the chars outputted are over 20 long to display '...' or simply nothing at all. </p>
  
  <p>Thanks</p>