Re: Makeing automatic tags for email and www.
| From: | Eugene Lee | Date: | Wed, 15 Oct 2003 09:03:16 +0000 |
| Subject: | Re: Makeing automatic tags for email and www. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166172@lists.php.net to get a copy of this message | ||
On Wed, Oct 15, 2003 at 03:41:01AM -0500, Gabriel Peugnet wrote:
:
: I want to convert
: my@email.com
: into
: (a href='mailto:my@email.com') my@email.com
(/a)
:
: (I sustitued tags with parenthesis)
:
: It's a little tedious makeing the function.
Nah.
function emaillink($url)
{
$email = htmlentities($email);
return '<a href=\'mailto:' . $email .
'\'>' . $email . '</a>';
}