forked from openlp/openlp
Make escaping function a one-liner.
This commit is contained in:
parent
f7752255b0
commit
c599a1785d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user