RE: [PHP] DOMDocument -> loadHTML() cuts off html input
| From: | Bastien Koert | Date: | Wed, 01 Aug 2007 13:12:08 +0000 |
| Subject: | RE: [PHP] DOMDocument -> loadHTML() cuts off html input | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-259988@lists.php.net to get a copy of this message | ||
Is there a quote in the data?
That is the usual culprit in my situations like that...
bastien
> Date: Wed, 1 Aug 2007 10:54:59 +0200> From: stijn@metastable.be> To:
> php-general@lists.php.net> Subject: [PHP] DOMDocument -> loadHTML() cuts off html input>
> > Hey List,> > In my application, I am loading html content into a DOMDocument using >
> loadHTML(). The DOMDocument is validated, then the element with a > certain ID tag is extracted
> and loaded into a node in the main > DOMDocument, which is then presented as html with
> saveHTML().> > This works fine and has worked fine for relatively large pages > (containing
> several <select> lists with up to 400 options in total).> > The problem I am now facing
> is a page with a single, relatively large > <select> list, i.e. some 330 options.> The
> html is generated as expected. However when I load it into a > DOMDocument and saveHTML(), the
> select list is cut off to about 30 > options. The remainder of the html content dissappears>
> and instead, the remaining open tags are closed, presumably by > DOMDocument's saveHTML()
> method.> > Any ideas as to why this behaviour is occurring and how to fix it ?> Further
> information available if needed.> > Thanks in advance,> > Stijn> > -- > PHP
> General Mailing List (http://www.php.net/)> To unsubscribe, visit:
> http://www.php.net/unsub.php>
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE