plainblack.com
Username Password
search
Bookmark and Share

EmailEncode

Encodes an email address for safe inclusion on a public website.

The macro returns javascript which generates an encoded mailto link.

Optional parameters to pass a CLASS or STYLE attribute for the <a> tag.

e.g.

^EmailEncode(info@mathsbank.co.uk, Email us);

returns

<script type="text/javascript">eval(unescape('d%6Fc%75%6De%6E%74%2E%77%72%69%74e%28%27%3Ca%20%68%72ef%3D%22%26%23%31%30%39%3Ba%26%23%31%30%35%3B%6C%26%23%31%31%36%3B%26%23%31%31%31%3B%3A%26%23%31%30%35%3B%26%23%31%31%30%3B%26%23%31%30%32%3B%26%23%31%31%31%3B%26%23%36%34%3B%26%23%31%30%39%3B%26%23%39%37%3B%26%23%31%31%36%3B%26%23%31%30%34%3B%26%23%31%31%35%3B%26%23%39%38%3B%26%23%39%37%3B%26%23%31%31%30%3B%26%23%31%30%37%3B%26%23%34%36%3B%26%23%39%39%3B%26%23%31%31%31%3B%26%23%34%36%3B%26%23%31%31%37%3B%26%23%31%30%37%3B%22%3E%20%45%6Da%69%6C%20%75%73%3C%2Fa%3E%27%29%3B'));</script>


Comments
DownloadEmailEncode.pm EmailEncode.pm
LinksLuke Robinson
No Support Offered
Statistics Downloads: 578
Views: 2362
Rating: 0
Updated: 10/3/2008
Keywords email macros
NavigationMore from Luke Robinson
Back to the Bazaar
© 2018 Plain Black Corporation | All Rights Reserved