Supertext / polylang-supertext

Supertext Plugin for the Wordpress Polylang Multilingual Add-On
7 stars 3 forks source link

Suppress warnings generated by DOMDocument::loadHTML() #29

Closed ocean90 closed 3 years ago

ocean90 commented 3 years ago

DOMDocument::loadHTML() may throw some PHP warnings for unknown HTML. To suppress them we can use libxml_use_internal_errors(false).

Some logged warnings:

Bildschirmfoto 2021-11-24 um 10 37 39

WordPress is doing the same in several places: