|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
smartybug Smarty Rookie
Joined: 18 Jan 2010 Posts: 14
|
|
Back to top |
|
gomo Smarty n00b
Joined: 20 Jan 2010 Posts: 1
|
Posted: Wed Jan 20, 2010 3:30 am Post subject: |
|
|
Hi
You can use 'variablefilter'.
e.g.
Code: |
$smarty->loadPlugin('smarty_modifier_escape');
$smarty->register_variablefilter('smarty_modifier_escape');//arg is php callable
|
'smarty:nodefaults' change to 'nofilter'.
Code: |
{$foo nofilter}// no escape this variable.
|
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|