java - Android JSoup use site css for extracted div class -


i'm working on app displays 1 div class of webpage. problem is, div class (of course) not using site's css anymore. no want add css displayed div class. how can that?

here code displaying "events" div:

    private class  loaddata extends asynctask<void,void,void> {      string html=new string();     document doc = null;     elements ele = null;     @override     protected void doinbackground(void... params) {          try {              doc = jsoup.connect(url).timeout(100000).get();         } catch (ioexception e) {             e.printstacktrace();         }          elements ele = doc.select("div.events");         html = ele.tostring();         return null;     }     @override     protected void onpostexecute(void result) {          super.onpostexecute(result);          string mime = "text/html";         string encoding = "utf-8";         mywebview.loaddata(html, mime, encoding);      }  } 

you can "style" or "link" tags jsoup , prepend html data.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -