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 @@
 &lt;a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" &gt;&#x6d;&#x65;&#x40;&#x64;&#x6f;&#x6d;&#x61;&#x69;&#x6e;&#x2e;&#x63;&#x6f;&#x6d;&lt;/a&gt;
 &lt;a href="mailto:[email protected]?subject=Hello%20to%20you%21" &gt;[email protected]&lt;/a&gt;
 &lt;a href="mailto:[email protected][email protected]%[email protected]" &gt;[email protected]&lt;/a&gt;
-&lt;a href="mailto:[email protected]" class="email"&gt;[email protected]&lt;/a&gt;</programlisting>
+&lt;a href="mailto:[email protected]" class="email"&gt;[email protected]&lt;/a&gt;
+&lt;script type="text/javascript" language="javascript"&gt;
+&lt;!--
+{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))}
+//--&gt;
+&lt;/script&gt;</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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.