You are here: Re: [PHP] stripping html tags « PHP « IT news, forums, messages
Re: [PHP] stripping html tags

Posted by Dotan Cohen on 06/05/05 18:37

On 6/5/05, Marek Kilimajer <lists@kilimajer.net> wrote:
> Dotan Cohen wrote:
> > 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.
>
> Since what time does php gives the column of the error? It seems more
> like javascript error.
>

My mistake. I was trying to parse wml. The problem wasn't in the php
code, it was in the code not parsing! I just started another thread on
that subject. Sorry for the false alarm.

Dotan
<a href='http://lyricslist.com/lyrics/pages/artist_albums.php/321/Madonna'>Madonna
lyrics</a>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация