Example 14.41. register modifier pluginphp
<?php // let's map PHP's stripslashes function to a Smarty modifier. $smarty->registerPlugin("modifier","ss", "stripslashes"); ?>
In the template, use ss to strip slashes.ide
ss
<?php {$var|ss} ?>