Re: [SMARTY] Compressing output from a template
| From: | Mark Rogers | Date: | Wed, 17 Nov 2004 14:24:48 +0000 |
| Subject: | Re: [SMARTY] Compressing output from a template | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11972@lists.php.net to get a copy of this message | ||
Markku Niskanen writes:
> $content = $formObject->fetchTemplate('updateform.tpl');
> [...]
>
> What do you consider the safest and fastet way of 'trimming' the
> string in the "content" so that it would remove all unnecessary
> whitespace in the HTML string?
The most obvious starting point would be to make use of {strip}...{/strip}
inside the updateform.tpl template. Have you tried this?
--
Mark Rogers,
More Solutions Ltd