nischayn22 / PageQuality

A MediaWiki extension to monitor and improve Page Quality
MIT License
0 stars 1 forks source link

When recalculating scores, I see a lot of "unexpected end tag" warnings #35

Open drorsnir opened 2 years ago

drorsnir commented 2 years ago

PHP Warning: DOMDocument::loadHTML(): unexpected end tag : li in Entity, line: 62 in PageQualityScorerReadability.php on line 72

I'm getting a hundreds of these, probably because we use li so much. This might be meaningles, in which case we should suppress these errors. Two options for doing so:

  1. Wikimedia\AtEase\AtEase::suppressWarnings() and Wikimedia\AtEase\AtEase::restoreWarnings().
  2. libxml_use_internal_errors( true ), and after the code add libxml_clear_errors();