【 jar包 】 compile files('libs/jsoup-1.11.2.jar')
public static String getNewContent(String htmltext) {
Document doc = Jsoup.parse(htmltext);
Elements elements = doc.getElementsByTag("img");
for(Element element : elements) {
element.attr("width","100%").attr("height","auto");
}
return doc.toString();
}