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

From: Date: Wed, 24 Mar 2004 15:55:34 +0000
Subject: Re: [SMARTY] Smarty 'unescape' variable modifier ?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11167@lists.php.net to get a copy of this message
Artur Pydo typed this on 03/24/2004 07:47 AM:
Hi, 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 ?
You should unescape them when you remove them from the database in your SQL statement rather than make your application do it. More logic in db than in client interface will make your coding easier in the long run. -Robby -- Robby Russell, | Sr. Administrator / Lead Programmer Command Prompt, Inc. | http://www.commandprompt.com rrussell@commandprompt.com | Telephone: (503) 222.2783

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