给xml的title和description加上转义

This commit is contained in:
wlx 2013-05-22 02:24:13 +00:00
parent 4745e2dead
commit 359dbcd887
1 changed files with 2 additions and 2 deletions

View File

@ -3732,10 +3732,10 @@ class Admin_DataController extends Zend_Controller_Action
} }
$doi.='</contributors> $doi.='</contributors>
<titles> <titles>
<title>'.$row['title'].'</title> <title><![CDATA['.$row['title'].']]</title>
<subtitle></subtitle> <subtitle></subtitle>
</titles>'; </titles>';
$doi.='<description>'.$row['description'].'</description>'; $doi.='<description><![CDATA['.$row['description'].']]</description>';
$doi.='<publisher><publisher_name>'.$row['publisher'].'</publisher_name></publisher>'; $doi.='<publisher><publisher_name>'.$row['publisher'].'</publisher_name></publisher>';
$doi.='<doi_data> $doi.='<doi_data>
<doi>'.$row['doi'].'</doi> <doi>'.$row['doi'].'</doi>