Re: Close all open tags in HTML text

From: Date: Tue, 14 Dec 2004 00:23:08 +0000
Subject: Re: Close all open tags in HTML text
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204256@lists.php.net to get a copy of this message
On 09-Dec-2004 Marek Kilimajer wrote: <snipage> > > not really, but it removes <script> and </script> so javascript is > not > interpreted. $txt = preg_replace('|<script[^>]*?>.*?</script>|si', '', $txt); Regards, -- Don Read dread@ispwest.com -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.

« previous php.general (#204256) next »