Re: [SMARTY] Smarty vars inside double quotes

From: Date: Wed, 23 Jul 2003 12:22:19 +0000
Subject: Re: [SMARTY] Smarty vars inside double quotes
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9946@lists.php.net to get a copy of this message
On Tue, Jul 22, 2003 at 08:22:34PM -0400, Liz Fulghum wrote: > Hi - > > running into an issue with smarty variable that contain double quotes. > Specifically in instances where I'm surrounding the variable in double > quotes like in form fields: <input name="name" type="text" > class="form" > style="width:300px" value="{$name}"> use value="{$name|escape}". this turns '"' into '&quot;' see: http://smarty.php.net/manual/en/language.modifier.escape.php for further options. > Smarty is terminating the output of contents of the variable where the first > quote appears, even though it contains the full string (and displays it when > not within quotes). > > The smarty man page on quotes isn't providing much help to me .... any clues > on a way around this? > > Thanks in advance. > > > --------------------- > Liz Fulghum > http://www.eastbywest.com/ > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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