stripping html tags
| From: | Dotan Cohen | Date: | Sun, 05 Jun 2005 14:05:04 +0000 |
| Subject: | stripping html tags | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-216403@lists.php.net to get a copy of this message | ||
I took this example from php.net, but can't figure out where I went
wrong. Why does this:
$text = preg_replace("/<head(.|\s)*?>(.|\s)*?<\/head>/i" , "" ,
$text);
throw this error:
syntax error at line 265, column 39:
$text = preg_replace("/<head(.|\s)*?>(.|\s)*?<\/head>/i" , "" ,
$text);
======================================^
It seems to be pointing to the 'e' is 'head'. Why? Thanks.
Dotan Cohen
http://lyricslist.com/lyrics/pages/artist_albums.php/416/Queen