Question: I need to decode HTML entities, e.g. from &#246; to ö, and &amp; to &.

`URLEncoder.decode(str)` does not do the job (convert from % notations). TextUtils has a HTMLencode, but not a HTMLdecode.

Are there any function for decoding HTML entities?

Answer: 
Html.fromHtml(String html) is **deprecated** after API v24 so this is the correct way to do it

```
  if (Build.VERSION.SDK_INT >= 24)
  {
       textView.setText(Html.fromHtml(htmlString , Html.FROM_HTML_MODE_LEGACY)));  
  }
  else
  {
       textView.setText(Html.fromHtml(htmlString));
  }

```
You can remove special char from string by calling 

```
responsestring.replace(“special char here”, “”);

```

you can convert response into a string from htmlstring like that – 
Html.fromHtml( response string here )
But this method is depreciated on API 24 so you need to do it in a correct way-

```
if (Build.VERSION.SDK_INT >= 24)
{
    post_description.setText(Html.fromHtml( response here , Html.FROM_HTML_MODE_LEGACY));
}
else
{
    post_description.setText(Html.fromHtml( response here ));
}

```