RE: [Phplib-users] STrange problem with templates.
Brought to you by:
nhruby,
richardarcher
|
From: Layne W. <la...@if...> - 2001-10-11 14:21:59
|
> I am encountering a strange problem with templates. In
> essence the problem is that when a string contains a dollar
> sign and a comma such as $123,456.00 the resulting output is
> 456 the $123, is for some reason chopped off. An example of
> the source code that this happens on is as follows.
>
> $controls[narrative]=nl2br(htmlentities($thedb->f(narritave)));
> $t->set_block ("page","row","rows");
> $t->set_var ($controls);
> $t->parse ("rows","row",true);
>
> Do you have any suggestions on how to fix this.
The fix for this is both in the old list archives
<http://marc.theaimsgroup.com/?l=phplib&r=1&w=2> and in CVS at SourceForge.
The fix consists of changing $ to its html entity during set_var and
changing it back in finish.
Layne Weathers
Ifworld Inc
|