logo       

[SMARTY] Emails and URLs in smarty template content: msg#00403

php.smarty.general

Subject: [SMARTY] Emails and URLs in smarty template content

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?



--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise