modifier.smarty.php
Tags
Table of Contents
Functions
- smarty_modifier_smarty() : string
- Implement smarty:nodefaults for Smarty3.
Functions
smarty_modifier_smarty()
Implement smarty:nodefaults for Smarty3.
smarty_modifier_smarty(string $string, string $modifier) : string
Adding |smarty:nodefaults to strings is the smarty v2 way to indicates that a string should not be escaped. It doesn't work with smarty 3 but it is a useful way to make strings findable for this purpose as we figure out the best way for smarty 3.
As a bridging mechanism this ensures the modifiers added in v2 do not error in v3.
Eventually we want to run v3/v4 to escape by default but we are deferring that challenge until we have achieved the first set of upgrading to v3.
Parameters
- $string : string
-
The html to be tweaked.
- $modifier : string
-
Either nodefaults or nothing
Return values
string —the new modified html string