Re: [SMARTY] inserting an obfuscated mailto link into a componentised layout
| From: | messju mohr | Date: | Wed, 21 Jul 2004 20:32:01 +0000 |
| Subject: | Re: [SMARTY] inserting an obfuscated mailto link into a componentised layout | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11622@lists.php.net to get a copy of this message | ||
On Wed, Jul 21, 2004 at 09:39:40PM +0200, Thorsten wrote:
> >>everything i put into the $content variable is printed as-is, and
> >>is not processed.
> >Check out smarty->fetch.
> i read the part dealing with fetch, but i can't see how that improves
> the situation, really. as far as i've understood, one doesn't display
> the template, but passes it into a variable. how would i manipulate that
> variable to have the mail obfuscation?
fetch() returns the already evaluated template's output. so the
variable you assign it's return-value to already contains the
obfuscated mail-address.
> - Thorsten