prefilter problems.

From: Date: Sat, 13 Jul 2002 04:19:03 +0000
Subject: prefilter problems.
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5275@lists.php.net to get a copy of this message
I'm using smarty version 1.5.2 and tried to use the example of prefilter form the 1.5.2 smarty manual and it doesn't seem to be working. so, i altered it to fit my needs and it still isn't working. function remove_href($source) { $source = preg_replace("/<a href=.*>/","",$source); $source = preg_replace("/<\/a>/","",$source); echo "HELLO"; return $source; } $t->register_prefilter("remove_href"); $t->display("email_inbox.tpl"); after testing it all my hyper links still work and have the href. and HELLO is never echo'd Any help would be appreciated. thanks, joe

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