outputhtml : Display the XML errors before using them

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4837 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-01-13 22:07:47 +00:00
parent 9459042a22
commit 2bb3013318

View File

@@ -126,7 +126,12 @@ EOT;
if (! empty ($errors))
{
echo "ERROR: Invalid HTML provided\n";
echo "<pre>";var_dump ($errors);echo "</pre>";
echo "<pre>";var_dump ($errors);
foreach (explode ("\n", $layoutPage) as $key => $val)
{
echo sprintf ("%5d", $key+1)." ".htmlentities ($val)."\n";
}
echo "</pre>";
exit;
}
foreach (array ("script" => "src", "link" => "href", "img" => "src")