From c599a1785d39db0f71d0fe284497925e39ee61df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20P=C3=B5ldaru?= Date: Tue, 13 Mar 2012 11:11:36 +0200 Subject: [PATCH] Make escaping function a one-liner. --- openlp/plugins/remotes/html/openlp.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openlp/plugins/remotes/html/openlp.js b/openlp/plugins/remotes/html/openlp.js index 5c467d123..4d3c4cde8 100644 --- a/openlp/plugins/remotes/html/openlp.js +++ b/openlp/plugins/remotes/html/openlp.js @@ -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