Here is a candidate for a function to go in 'lib/customchecks.php". It should detect versions of the PHP xmllib which sliently remove ampersands from XML, thereby messing up Moodle's backups, restores and HotPot module.
function php_check_libxml($result) {
global $CFG;
require_once($CFG->dirroot.'/lib/xmlize.php');
$xml = xmlize('<?xml version="1.0" encoding="ISO-8859-1"?><amp>&</amp>', 0);
if (isset($xml['amp']'#'['0']) && $xml['amp']'#'['0']=='&') {
// xmlize works ok
$result = null;
} else {
// bad libxml library
$result->status = false;
$result->badlibxml = '';
if (extension_loaded('libxml')) {
// try to get libxml2 version
ob_start();
phpinfo(INFO_MODULES);
$pattern = '/<tr><td[^>]*>libxml2[^<]*<\/td><td[^>]>\s([0-9.]+)\s*<\/td><\/tr>/';
if (preg_match($pattern, ob_get_clean(), $matches)) {
$result->badlibxml = $matches[1]; // 2.7.1 and 2.7.2 are known to be bad
}
}
}
return $result;
}
The function would be called by adding something like the following to "admin/environment.xml"
<CUSTOM_CHECK file="lib/customcheckslib.php" function="php_check_xmllib" level="optional">
<FEEDBACK>
<ON_CHECK message="xmllibwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
And the following message to "lang/en_utf8/admin.php"
$string['xmllibwarning'] = '<p><strong>Dysfunctional XML library</strong></p><p>PHP's xml library on this server is dysfunctional and will cause errors in Moodle's backups, restores and the HotPot module</p>';
It may be possible to use the $result->badxmllib to report the xmllib version, but I can't see how to do that as quickly as I think you can 
regards
Gordon
Please could you attach the quiz that does not display correctly.
Or if you are talking about a report, please could you attach a screenshot.