RsD0p9BK
4/3/2014 - 6:21 AM

Replace all html special characters in Smarty http://pastebin.com/cxhwp4pD

Replace all html special characters in Smarty http://pastebin.com/cxhwp4pD

{$string|unescape:"entity"|truncate:5}

{$string|html_entity_decode:2:"UTF-8"|truncate:5:"...":true|htmlentities:2:"UTF-8"}

{$string|html_entity_decode|truncate:5}