Make escaping function a one-liner.

This commit is contained in:
Mattias Põldaru 2012-03-13 11:11:36 +02:00
parent f7752255b0
commit c599a1785d

View File

@ -280,9 +280,8 @@ window.OpenLP = {
$.mobile.changePage("#service-manager");
},
escapeString: function (string) {
string = string.replace(/\\/g, "\\\\").replace(/"/g, "\\\"")
string = string.replace(/#/g, "%23").replace(/;/g, "%3B")
return string
return string.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(
/#/g, "%23").replace(/;/g, "%3B")
}
}
// Service Manager