Open Dan0sz opened 2 years ago
Thanks @Dan0sz! If you can make a few updates, I'll go ahead and get this merged:
libxml_use_internal_errors( false );
toward the end of that function.I've opened a new PR (#82) that implements @bradyvercher's requested changes.
Mute warnings for invalid HTML tags.
Description
I only added
libxml_use_internal_errors(true);
right above the LoadHTML() to mute any warnings it throws.Motivation and Context
In its current state, the plugin fills the log with warnings like these:
PHP message: PHP Warning: DOMDocument::loadHTML(): Tag template invalid in Entity, line: 12
How Has This Been Tested?
Didn't feel it was necessary.
Screenshots (if appropriate):
Types of changes
Checklist: