[RDF] Encode > in content when serializing to XML
This avoids the invalid combination "]]>" from appearing in the output
This commit is contained in:
parent
c1c0b42a12
commit
c9346d4caa
|
@ -678,7 +678,10 @@ $rdf.Serializer = function () {
|
||||||
|
|
||||||
function escapeForXML(str) {
|
function escapeForXML(str) {
|
||||||
if(typeof str == 'undefined') return '@@@undefined@@@@';
|
if(typeof str == 'undefined') return '@@@undefined@@@@';
|
||||||
return str.replace(/&/g, '&').replace(/</g, '<').replace(/"/g, '"');
|
return str.replace(/&/g, '&')
|
||||||
|
.replace(/</g, '<')
|
||||||
|
.replace(/>/g, '>')
|
||||||
|
.replace(/"/g, '"');
|
||||||
}
|
}
|
||||||
|
|
||||||
function relURI(term) {
|
function relURI(term) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user