Search code examples
androidhtmlmulti-device-hybrid-apps

<button> tag is not taking in Html.fromHtml in android


I want to display html data in text view all my html tags are working fine but only <button> tag is not taking this is my code chielddesctext.setText(Html.fromHtml("<button>hi</button>"));. Can some one can help me to solve this problem i tried but its not working.


Solution

  • Html.fromHtml() does not honor all HTML tags. This roster is a bit old but is still fairly close to the current state of affairs.