Re: HTML_Template_IT

From: Date: Tue, 15 Jun 2004 09:18:04 +0000
Subject: Re: HTML_Template_IT
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13151@lists.php.net to get a copy of this message
Julie Knoll wrote: >When assigning a string to the template where the string contains a $, the $ >and the next 2 characters will be stripped out. For example, assigning '$100 >million' becomes 0 million. I know I can get around this by using >quotemeta(), but I didn't know if this should be considered a bug? > ><?php >include_once('HTML/Template/IT.php'); >$tpl = new HTML_Template_IT(); >$tpl->loadTemplatefile('test.inc.html'); >$tpl->setVariable('STRING' , '$100 million'); >$tpl->show(); >?> Did you try with HTML_Template_Sigma ? I think it is more reliable. Bertrand Mansion Mamasam

« previous php.pear.general (#13151) next »