Re: reg-exp for removing multiline html comments

From: Date: Tue, 27 Nov 2001 19:55:00 +0000
Subject: Re: reg-exp for removing multiline html comments
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2061@lists.php.net to get a copy of this message
On Tue, 27 Nov 2001, Wolfram Kriesing wrote: > i guess this had been asked before but i didnt find the answer yet > > in the manual it says under teh section "prefilter" > > ---------------------- > // put this in your application, or in Smarty.addons.php > function remove_dw_comments($tpl_source) { > return preg_replace("/<!--#.*-->/U","",$tpl_source); return preg_replace('/<!--.*-->/Us', '', $tpl_source); -Andrei * My wishlist: http://www.amazon.com/exec/obidos/wishlist/2Q2DIPY7BZLSH/ *

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