undocumented mail

This commit is contained in:
pete_morgan
2006-03-17 00:12:38 +00:00
parent 9d2d109a56
commit 7227269158

View File

@@ -32,7 +32,7 @@
<entry>1</entry>
<entry>string</entry>
<entry>No</entry>
<entry><literal>html</literal>,<literal>htmlall</literal>,<literal>url</literal>,<literal>urlpathinfo</literal>,<literal>quotes</literal>,<literal>hex</literal>,<literal>hexentity</literal>,<literal>javascript</literal></entry>
<entry><literal>html</literal>,<literal>htmlall</literal>,<literal>url</literal>,<literal>urlpathinfo</literal>,<literal>quotes</literal>,<literal>hex</literal>,<literal>hexentity</literal>,<literal>javascript</literal>,<literal>mail</literal></entry>
<entry><literal>html</literal></entry>
<entry>This is the escape format to use.</entry>
</row>
@@ -58,7 +58,7 @@
$smarty->assign('articleTitle',
"'Stiff Opposition Expected to Casketless Funeral Plan'"
);
$smarty->assign('EmailAddress','smarty@example.com');
?>
]]>
</programlisting>
@@ -74,6 +74,7 @@ $smarty->assign('articleTitle',
{$articleTitle|escape:"url"}
{$articleTitle|escape:"quotes"}
<a href="mailto:{$EmailAddress|escape:"hex"}">{$EmailAddress|escape:"hexentity"}</a>
{$EmailAddress|escape:'mail'}
]]>
</programlisting>
<para>
@@ -88,6 +89,7 @@ $smarty->assign('articleTitle',
%27Stiff+Opposition+Expected+to+Casketless+Funeral+Plan%27
\'Stiff Opposition Expected to Casketless Funeral Plan\'
<a href="mailto:%62%6f%..snip..%65%74">&#x62;&#x6f;&#x62..snip..&#x65;&#x74;</a>
smarty [AT] example [DOT] com
]]>
</screen>
<para>Remember that native PHP functions can be used as modifiers so this will work</para>