fix invalid XML on export due to quotation marks in URI

This commit is contained in:
Simon Kornblith 2010-12-12 13:24:47 +00:00
parent e01aa91e49
commit 43670e3d4c

View File

@ -566,7 +566,7 @@ __Serializer.prototype.statementsToXML = function(sts) {
function escapeForXML(str) {
if (typeof str == 'undefined') return '@@@undefined@@@@';
return str.replace(/&/g, '&amp;').replace(/</g, '&lt;')
return str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;');
}
function relURI(term) {