disabling modifiers

From: Date: Fri, 25 Apr 2003 00:47:46 +0000
Subject: disabling modifiers
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9375@lists.php.net to get a copy of this message
Hi! I noticed that everytime I want to output an ampersand character, Smarty modifies that character into &amp; HTML char-entity. I wanted to dynamically create a URL based on certain variables like ---template file--- <a href="{$action_handler}?action=ACopenModule&modname={$module_name}">{$modul e_name}</a> ----- IF $action_handler is equal to "index.php" and $module_name is equal to "Sales Invoice" My expected output would be.... <a href="index.php?action=ACopenModule&modname=Sales%32Invoice">Sales Invoice</a> but what Smarty does it to convert & character into &amp; so what I could see in the output is <a href="index.php?action=ACopenModule&amp;modname=Sales%32Invoice">Sales Invoice</a> In this cause, I have a malformed URL which is bad... the {$var|nodefaults} nodefaults modifiers is recognized in my current Smarty Setup...is there any other way to disable the default modifier for & character? Thanks Jun

« previous php.smarty.general (#9375) next »