Encode characters using URL encoding not JSON unicode markup.

This commit is contained in:
Mattias Põldaru 2012-03-13 11:05:07 +02:00
parent 8bd4ad02fd
commit f7752255b0
1 changed files with 2 additions and 1 deletions

View File

@ -281,7 +281,8 @@ window.OpenLP = {
},
escapeString: function (string) {
string = string.replace(/\\/g, "\\\\").replace(/"/g, "\\\"")
return string.replace(/#/g, "\\u0023").replace(/;/g, "\\u003B")
string = string.replace(/#/g, "%23").replace(/;/g, "%3B")
return string
}
}
// Service Manager