stripslashes
| From: | taliku at balcab dot ch | Date: | Mon, 05 Feb 2001 17:52:13 +0000 |
| Subject: | stripslashes | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-64@lists.php.net to get a copy of this message | ||
Hi!
I want to replace all slashes with nothing.
I've tried to add in the Smarty.class.php the following line to custom_mods:
'sslashes' => 'stripslashes',
and in my template:
{$text|sslashes}
but i didn't worked.
So i tried to add to Smarty.addons.php following:
function smarty_mod_sslashes($string)
{
return stripslashes($string);
}
and edit custom_mods to
'sslashes' => 'smarty_mod_sslashes',
it didn't worked too.
Now i'm trying to replace the \ with nothing like this:
{$text|replace:"\":""}
but smarty says something about "missing argument 3".
Is the syntax of the "replace" function not correct?
Thanks in advance
taliku