cvs: smarty /docs/en/designers/language-custom-functions language-function-mailto.xml
"Monte Ohrt" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmohrt1112279673@cvsserver> |
mohrt Thu Mar 31 09:34:33 2005 EDT
Modified files:
/smarty/docs/en/designers/language-custom-functions
language-function-mailto.xml
Log:
add javascript_charcode example
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml:1.2 smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml:1.3
--- smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml:1.2 Sat Nov 20 21:04:01 2004
+++ smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml Thu Mar 31 09:34:32 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<sect1 id="language.function.mailto">
<title>mailto</title>
<informaltable frame="all">
@@ -39,7 +39,8 @@
<entry>No</entry>
<entry><emphasis>none</emphasis></entry>
<entry>How to encode the e-mail. Can be one of <literal>none</literal>,
- <literal>hex</literal> or <literal>javascript</literal>.</entry>
+ <literal>hex</literal>, <literal>javascript</literal>
+ or <literal>javascript_charcode</literal>.</entry>
</row>
<row>
<entry>cc</entry>
@@ -111,6 +112,8 @@
{mailto address="[email protected]" subject="Hello to you!"}
{mailto address="[email protected]" cc="[email protected],[email protected]"}
{mailto address="[email protected]" extra='class="email"'}
+{mailto address="[email protected]" encode="javascript_charcode"}
+
OUTPUT:
@@ -123,7 +126,12 @@
<a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" >me@domain.com</a>
<a href="mailto:[email protected]?subject=Hello%20to%20you%21" >[email protected]</a>
<a href="mailto:[email protected][email protected]%[email protected]" >[email protected]</a>
-<a href="mailto:[email protected]" class="email">[email protected]</a></programlisting>
+<a href="mailto:[email protected]" class="email">[email protected]</a>
+<script type="text/javascript" language="javascript">
+<!--
+{document.write(String.fromCharCode(60,97,32,104,114,101,102,61,34,109,97,105,108,116,111,58,109,101,64,101,120,97,109,112,108,101,46,99,111,109,34,32,62,109,101,64,101,120,97,109,112,108,101,46,99,111,109,60,47,97,62))}
+//-->
+</script></programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php