From 9459042a2215c554792419cff9c16bf6d46fab9f Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 11 Jan 2019 12:52:54 +0000 Subject: [PATCH] outputhtml : Catch the HTML errors and display them git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4831 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- outputhtml.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/outputhtml.php b/outputhtml.php index 8aa6150..3f9bfac 100644 --- a/outputhtml.php +++ b/outputhtml.php @@ -112,7 +112,23 @@ EOT; // Manage the timestamp/md5sum for the external files managed by this // server. $dom = new \DOMDocument (); - @$dom->loadHTML ($layoutPage); + libxml_use_internal_errors (true); + $dom->loadHTML ($layoutPage); + $errors = libxml_get_errors (); + foreach ($errors as $key => $err) + { + // Tag YYY invalid : code 801 + // Like in