title: Replace all html special characters in Smarty
body: <p>I want to truncate a string in Smarty<br>
  This is the scenario:<br>
  The string is "Test&#33;abc". 
  Maximum characters allowed = 5.<br>
  Smarty gets string.<br>
  If I use <code>{$string}</code>, I get the desired result "Test!abc"<br>
  If I use <code>{$string|truncate:5:"..":true}</code> I get "Test&amp;.."  </p>
  
  <p>How can I make truncate after html chars conversion. Prefer not to make it in php.<br>
  I know about "replace", but it will look like "|replace..|replace..|......" </p>