mailto
Enclose the body text in a HTML "<a href="mailto:...">...</a>" container to make a link to an email address.
Any parameters will be joined with a space and used to form the new link's text.
Example
- [filter mailto]kevin@cursor.biz[/filter]
- [filter mailto.Kevin.Walsh]kevin@cursor.biz[/filter]
|
Results in:
- <a href="mailto:kevin@cursor.biz">kevin@cursor.biz</a>
- <a href="mailto:kevin@cursor.biz">Kevin Walsh</a>
|
Source code
sub {
my ($val,$tag,@arg) = @_;
my $out = qq{<a href="mailto:$val">};
my $anchor = $val;
if(@arg) {
$anchor = join " ", @arg;
}
$out .= "$anchor</a>";
}
|