Re: [SMARTY] Smarty 'unescape' variable modifier ?

From: Date: Wed, 24 Mar 2004 16:30:08 +0000
Subject: Re: [SMARTY] Smarty 'unescape' variable modifier ?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11170@lists.php.net to get a copy of this message
Hi, Artur Pydo wrote:
I'm manipulating escaped strings before inserting them in a sql database. Example : "Human\'s World". I would like to display them and was looking for a 'unescape' modifier in Smarty. As i cannot find anything like that, do you think there is a easy way to do that in Smarty ?
I had messju's and Curus answer on IRC : {$var|stripslashes} stripslashes() is a php function but there is no need to use register_modifier for php functions. If you use $security you should declare stripslashes(). Curus mentionned {include nasty_rant_about_magic_quotes} as well but i didn't tested it as the first solution is the best for me. -- Best regards, Artur Pydo.

« previous php.smarty.general (#11170) next »