Re: [SMARTY-DEV] trimwhitespace outputfilter bug
| From: | Monte Ohrt | Date: | Mon, 10 Mar 2003 14:47:24 +0000 |
| Subject: | Re: [SMARTY-DEV] trimwhitespace outputfilter bug | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-934@lists.php.net to get a copy of this message | ||
$ signs are interperted in double quotes when you assign it. Try one of
these:
$var = '$59.95 blah blah';
$var = "\$59.95 blah blah";
On Sat, 2003-03-08 at 22:18, Steve wrote:
> this is a good one:)
>
> pseudo code/explanation:
> .php file:
> $var = "$59.95 blah blah"
> $tmpl->load_filter('output', 'trimwhitespace');
>
> in template:
> {$var}<br>
> <textarea>{$var}</textarea>
>
> output:
> $59.95 blah blah<br>
> <textarea>.95 blah blah</textarea>
>
> I looked at the regex, I'm lost. It's ripping away the $59. Can someone
> fix this? The filter is great, but not when it breaks the content :)
>
> Thanks so much,
>
> Steve
--
Monte Ohrt <monte@ispi.net>