Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardinubuntu/3779f30d906f88d87d9dd59ee58cdd36 to your computer and use it in GitHub Desktop.
Save edwardinubuntu/3779f30d906f88d87d9dd59ee58cdd36 to your computer and use it in GitHub Desktop.
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