Re: [SMARTY] Possible issue with '&' -   and & etc being converted to   and & etc

From: Date: Fri, 14 Feb 2003 15:29:11 +0000
Subject: Re: [SMARTY] Possible issue with '&' -   and & etc being converted to   and & etc
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7763@lists.php.net to get a copy of this message
A patch is committed to CVS to not escape already escaped entities. Please give that a try. Monte On Fri, 2003-02-14 at 07:29, Tom Beddard wrote: > I've just updated to v2.4.2 from v2.3. > I have found that values passed through to smarty (like an array for use in > html_options) has its values made 'xhtml-safe' by converting all '&' to > &amp; However, if the values are already safe (and use &amp; and &nbsp; etc) > then the '&' character is still converted to &amp; thus changing the values > to &amp;nbsp; or &amp;amp; > > I guess the code to make safe html should treat the &nbsp; &amp; etc as a > single entities, rather than just converting the '&' on its own. > > Cheers, > Tom -- Monte Ohrt <monte@ispi.net>

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