Skip to content

Instantly share code, notes, and snippets.

@davidbilik
Created November 18, 2018 09:38
Show Gist options
  • Save davidbilik/75c2d30c66a52dd0f3bc9ba4fbac48b3 to your computer and use it in GitHub Desktop.
Save davidbilik/75c2d30c66a52dd0f3bc9ba4fbac48b3 to your computer and use it in GitHub Desktop.
Html.fromHtml(html, null,
Html.TagHandler { opening, tag, output, xmlReader ->
if (tag == "ul" && !opening) output.append("\n")
if (tag == "li" && opening) output.append("\n\t")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment