Re: [SMARTY] HTML Entities

From: Date: Thu, 02 Sep 2004 18:25:07 +0000
Subject: Re: [SMARTY] HTML Entities
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11761@lists.php.net to get a copy of this message
Yes: {$someVar|escape} See the docs regarding the escape modifier. Jake Stride wrote:
Is there a way to have smarty automatically replace all html entites in variable in a template? Ie Code: $smarty->assign("someVar", "One & one"); Template {$someVar} Would become One & one?


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