mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
example
This commit is contained in:
@@ -88,9 +88,19 @@ $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">bob..snip..et</a>
|
||||
]]>
|
||||
</screen>
|
||||
<para>Remember that native PHP functions can be used as modifiers so this will work</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
{* rewind get var registers the current location *}
|
||||
<a href="{$SCRIPT_NAME}?page=foo&rewind={$smarty.server.REQUEST_URI|urlencode}">click here</a>
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
|
||||
|
||||
|
||||
<para>
|
||||
See also <link linkend="language.escaping">Escaping Smarty Parsing</link>
|
||||
and <link linkend="tips.obfuscating.email">Obfuscating E-mail Addresses</link>.
|
||||
|
Reference in New Issue
Block a user