epiphyt / embed-privacy

Embed Privacy prevents loading of embedded external content and allows your site visitors to opt-in.
https://epiph.yt/en/embed-privacy/
GNU General Public License v2.0
19 stars 12 forks source link

Use DOM\HTMLDocument in PHP 8.4 #221

Open MatzeKitt opened 5 months ago

MatzeKitt commented 5 months ago

What feature are you requesting?

Use the DOM\HTMLDocument class for improved parsing when PHP 8.4 is available. Create a wrapper that takes an HTML string and either returns a HTMLDocument or a DOMDocument if the first one is not supported.

See also: https://wiki.php.net/rfc/domdocument_html5_parser

Why is this feature necessary?

Better parsing without errors in HTML5 documents, which we usually have here.

Are you expecing side-effects?

No response

Code of Conduct