note 110862 added to domdocument.loadhtml
| From: | cake at brothercake dot com | Date: | Sun, 16 Dec 2012 17:57:48 +0000 |
| Subject: | note 110862 added to domdocument.loadhtml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192555@lists.php.net to get a copy of this message | ||
Be aware that this function doesn't actually understand HTML -- it fixes tag-soup input using
the general rules of SGML, so it creates well-formed markup, but has no idea which element contexts
are allowed.
For example, with input like this where the first element isn't closed:
<span>hello <div>world</div>
loadHTML will change it to this, which is well-formed but invalid:
<span>hello <div>world</div></span>
----
Server IP: 69.147.83.199
Probable Submitter: 62.49.19.8
----
Manual Page -- http://php.net/manual/en/domdocument.loadhtml.php
Edit -- https://master.php.net/note/edit/110862
Del: integrated -- https://master.php.net/note/delete/110862/integrated
Del: useless -- https://master.php.net/note/delete/110862/useless
Del: bad code -- https://master.php.net/note/delete/110862/bad+code
Del: spam -- https://master.php.net/note/delete/110862/spam
Del: non-english -- https://master.php.net/note/delete/110862/non-english
Del: in docs -- https://master.php.net/note/delete/110862/in+docs
Del: other reasons-- https://master.php.net/note/delete/110862
Reject -- https://master.php.net/note/reject/110862
Search -- https://master.php.net/manage/user-notes.php