webview

Cannot display HTML string

Cannot display HTML string Question: I am struggling with display string HTML in Android WebView. On the server side, I downloaded a web page and escape HTML characters and quotes (I used Python): my_string = html.escape(my_string, True) On the Android client side: strings are unescaped by: myString = StringEscapeUtils.unescapeHtml4(myString) webview.loadData( myString, "text/html", "encoding"); However webview …

Total answers: 3