Fixed XML parsing error of ampersand '&' for study description

Ampersand within study description was causing error messages in
rdf files while XML parsing. Now this is fixed (by wrapping with CDATA)
This commit is contained in:
Cris
2019-05-28 17:16:27 +02:00
committed by hainberg
parent 7109b7974b
commit fc316efd3d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ if($studiengang_kz!=0)
{
$stg_obj = new studiengang();
$stg_obj->load($studiengang_kz);
$xml.='<studiengang_bezeichnung>'.$stg_obj->bezeichnung.'</studiengang_bezeichnung>';
$xml .= '<studiengang_bezeichnung><![CDATA['. $stg_obj->bezeichnung. ']]></studiengang_bezeichnung>';
}
if($titel!='')
+1 -1
View File
@@ -489,7 +489,7 @@ while ($row=$dbo->db_fetch_object())
$stg_kurzbz=strtoupper($row->typ.$row->kurzbz);
?>
<RDF:Description RDF:about="<?php echo $rdf_url.$stg_kurzbz; ?>" >
<VERBAND:name><![CDATA[<?php echo $row->kurzbzlang.' ('.$stg_kurzbz.') - '.htmlspecialchars($row->bezeichnung); ?>]]></VERBAND:name>
<VERBAND:name><![CDATA[<?php echo $row->kurzbzlang.' ('.$stg_kurzbz.') - '.$row->bezeichnung; ?>]]></VERBAND:name>
<VERBAND:stg><![CDATA[<?php echo $stg_kurzbz; ?>]]></VERBAND:stg>
<VERBAND:stg_kz NC:parseType="Integer"><![CDATA[<?php echo $row->studiengang_kz; ?>]]></VERBAND:stg_kz>
</RDF:Description>