Re: Good HTML parser needed

From: Date: Tue, 13 May 2008 04:00:13 +0000
Subject: Re: Good HTML parser needed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-274217@lists.php.net to get a copy of this message
strip_tags does the tricks. www.php.net/manual/en/function.strip-tags.php BTW, Why cn2 dot php.net blocked by the mail server? The rejected message: This is an automatically generated Delivery Status Notification Delivery to the following recipient failed permanently: php-general@lists.php.net Technical details of permanent failure: PERM_FAILURE: Gmail tried to deliver your message, but it was rejected by the recipient domain. The error that the other server returned was: 550 550-5.7.1 mail rejected by policy. SURBL hit 550-Spammy URLs in your message 550 See http://master.php.net/mail/why.php?why=SURBL. We recommend contacting the other email provider for further information about the cause of this error. Thanks for your continued support. (state 17) On 5/13/08, Shelley <myphplist@gmail.com> wrote: > Hi all, > > The fact is that I have a site that allow users to post hypertext articles. > However, I saw that sometimes, because of their careless input, > the articles is not rendered correctly. > > I want to know whether there are some good HTML parsers written in PHP. > > That is, > the parser checks whether html tags like table, tr, td, div, dt, dl, dd, > script, ul, > li, span, h1, h2, etc. are nested correctly. If any tags not matched, just > remove them. > > Any suggection is greatly appreciated. > > -- > Regards, > > Shelley > -- Regards, Wang Yi

« previous php.general (#274217) next »