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");
|
$.mobile.changePage("#service-manager");
|
||||||
},
|
},
|
||||||
escapeString: function (string) {
|
escapeString: function (string) {
|
||||||
string = string.replace(/\\/g, "\\\\").replace(/"/g, "\\\"")
|
return string.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(
|
||||||
string = string.replace(/#/g, "%23").replace(/;/g, "%3B")
|
/#/g, "%23").replace(/;/g, "%3B")
|
||||||
return string
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Service Manager
|
// Service Manager
|
||||||
|
Loading…
Reference in New Issue
Block a user