diff --git a/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt b/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt index 837c8d62c..e0f2a7dab 100644 --- a/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt +++ b/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt @@ -9,6 +9,7 @@ import android.os.Message import android.text.TextUtils import android.webkit.* import io.legado.app.App +import org.apache.commons.text.StringEscapeUtils import java.lang.ref.WeakReference @@ -131,7 +132,7 @@ class AjaxWebView { params.setCookie(url) handler.postDelayed({ view.evaluateJavascript("document.documentElement.outerHTML") { - handler.obtainMessage(MSG_SUCCESS, it) + handler.obtainMessage(MSG_SUCCESS, StringEscapeUtils.unescapeJson(it)) .sendToTarget() } }, 1000)