modifier problem

From: Date: Mon, 28 Apr 2003 12:19:19 +0000
Subject: modifier problem
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9403@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... because when i click the Sales Invoice link, the Browser's address bar will contain: index.php?action=ACopenModule&amp;modname=Sales%32Invoice Notice the &amp; word. I want to disable Smarty's default behavior by not converting & character into &amp; character. 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 (#9403) next »