Emails and URLs in smarty template content
| From: | Aliba Sora | Date: | Tue, 28 Jan 2003 21:10:04 +0000 |
| Subject: | Emails and URLs in smarty template content | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7378@lists.php.net to get a copy of this message | ||
Hi all,
I've been pondering this for a while without enough time to research it, so I
thought I would ask the question here.
I've a Smarty template that is receiving content from a .php script that gets
it from the db. In the PHP script the slashes are stripped and it is passed
to the template where it is 'htmlall' escaped.
Some of the data from the db is URLs or Email addresses. I was wondering what
the Best pratice to turn those into links would be. In the old phplib system
that I'm converting from they were just regex'ing them. I would prefer to
add a variable modifier in the template if possible....so I'm not sure if the
solution is a plugin or just a regex_replace. Any ideas or pre-existing
solutions?