Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Show garage info
String summary = garage.getDescription();
if (summary != null) {
// Handle summary code
Log.d(Carce.TAG, "Summary: " + summary);
Document document = Jsoup.parse(summary);
// document.select("img[attribute]").remove();
document.select("img").removeAttr("style");
document.select("img").attr("width", "100%");
document.select("img").attr("height", "auto");
Intent webUrlActivityIntent = new Intent(CarGarageActivity.this, WebViewActivity.class);
webUrlActivityIntent.putExtra("webHtml", document.toString());
startActivity(webUrlActivityIntent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.