[php-src] Issue #15249: Add support for HTML 5 in DOMDocument::loadHTML

From: Date: Mon, 05 Aug 2024 19:43:16 +0000
Subject: [php-src] Issue #15249: Add support for HTML 5 in DOMDocument::loadHTML
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247440@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15249 Author: Eptagone ### Description It will be great if [DOMDocument::loadHTML](https://www.php.net/manual/en/domdocument.loadhtml.php) is upgraded to use a HTML5 parser instead of HTML4. Currently it says: ``` Warning This function parses the input using an HTML 4 parser. The parsing rules of HTML 5, which is what modern web browsers use, are different. Depending on the input this might result in a different DOM structure. Therefore this function cannot be safely used for sanitizing HTML. ```

« previous php.bugs (#247440) next »