mailto 自動產生電子郵件鏈接,並根據選項決定是否對地址資訊編碼. 電子郵件地址編碼使得網絡嗅探程序難以收集到電子郵件地址信息.
技術要點: 儘管可以使用hex進位編碼,但javascript 已經算得上是很徹底的編碼形式了.
eg:
{mailto address="me@domain.com"}
{mailto address="me@domain.com" text="send me some mail"}
{mailto address="me@domain.com" encode="javascript"}
{mailto address=" me@domain.com" encode="hex"}
{mailto address="me@domain.com" subject="Hello to you!"}
{mailto address="me@domain.com" cc ="you@domain.com,they@domain.com"}
{mailto address="me@domain.com" extra='class="email"'}
##輸出: <a href="mailto:me@domain.com" >me@domain.com</a>
<a href="mailto:me@domain.com" > send me some mail</a>
<SCRIPT language="javascript">eval(unescape('document.wr%6
9te('me@domain.com
');'))</SCRIPT>
<a href="mailto:me@domain.com" > x6d;e@d&
#x6f;main.co& #x6d;</a>
<a href="mailto:me@domain.com?subject=Hello to you!" >me@domain.com</a>
<a href ="mailto:me@domain.com?cc=you@domain.com,they@domain.com" >me@domain.com</a>
<a href="mailto:me@domain. com" class="email">me@domain.com</a>
#下一節