pull/46/head
kunfei 5 years ago
parent d3297a16a5
commit a9817a77ab
  1. 3
      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)

Loading…
Cancel
Save