diff --git a/openlp/plugins/remotes/html/openlp.js b/openlp/plugins/remotes/html/openlp.js
index 5c991a018..56c0c5859 100644
--- a/openlp/plugins/remotes/html/openlp.js
+++ b/openlp/plugins/remotes/html/openlp.js
@@ -222,7 +222,7 @@ window.OpenLP = {
search: function (event) {
event.preventDefault();
var text = "{\"request\": {\"text\": \"" +
- $("#search-text").val().replace("\\", "\\\\").replace("\"", "\\\"") +
+ $("#search-text").val().replace(/\\/g, "\\\\").replace(/"/g, "\\\"") +
"\"}}";
$.getJSON(
"/api/" + $("#search-plugin").val() + "/search",