D
D
Dauren S2017-01-09 10:24:22
Java
Dauren S, 2017-01-09 10:24:22

how to hide html tags in android

You need to hide Html tags in the parsed json.
How to do it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dauren S, 2017-01-10
@dauren101

String plain = Html.fromHtml(htmlString).toString();

D
davidnum95, 2017-01-09
@davidnum95

Html.fromHtml("<h2>Title</h2><br><p>Description here</p>", Html.FROM_HTML_MODE_LEGACY);

A
al_gon, 2017-01-09
@al_gon

Jsoup!

Document doc = Jsoup.parse(stringWithHtml);
String docWithoutHtml= doc.text();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question