diff --git a/core/src/main/java/com/douban/rexxar/view/RexxarWebView.java b/core/src/main/java/com/douban/rexxar/view/RexxarWebView.java index e6bb9d1..0ad0158 100644 --- a/core/src/main/java/com/douban/rexxar/view/RexxarWebView.java +++ b/core/src/main/java/com/douban/rexxar/view/RexxarWebView.java @@ -331,6 +331,7 @@ public void callFunction(String functionName, String jsonString) { mCore.loadUrl(String.format(Constants.FUNC_FORMAT, functionName)); } else { jsonString = jsonString.replaceAll("(\\\\)([^utrn])", "\\\\\\\\$1$2"); + jsonString = jsonString.replaceAll("(\\\\)([utrn])", "\\\\$1$2"); jsonString = jsonString.replaceAll("(?<=[^\\\\])(\")", "\\\\\""); mCore.loadUrl(String.format(Constants.FUNC_FORMAT_WITH_PARAMETERS, functionName, jsonString)); }