I need to show this HTML text in a TextView with link click enabled.
mention test dpubek
<span class="proflinkWrapper">
<span class="proflinkPrefix">+</span>
<a class="proflink" href="https://plus.google.com/103010988161443919979" oid="103010988161443919979">movietrailer moviedb</a>
</span> <span class="proflinkWrapper">
<span class="proflinkPrefix">+</span>
<a class="proflink" href="https://plus.google.com/103675306250275917544" oid="103675306250275917544">Movieweb</a>
</span> <span class="proflinkWrapper">
<span class="proflinkPrefix">+</span>
<a class="proflink" href="https://plus.google.com/114941226520632356413" oid="114941226520632356413">Luba Tesler</a></span>
mention test dpubek <span class="proflinkWrapper"><span class="proflinkPrefix">+</span><a class="proflink" href="https://plus.google.com/103010988161443919979" oid="103010988161443919979">movietrailer moviedb</a></span> <span class="proflinkWrapper"><span class="proflinkPrefix">+</span><a class="proflink" href="https://plus.google.com/103675306250275917544" oid="103675306250275917544">Movieweb</a></span> <span class="proflinkWrapper"><span class="proflinkPrefix">+</span><a class="proflink" href="https://plus.google.com/114941226520632356413" oid="114941226520632356413">Luba Tesler</a></span>
This can be easily done using this code,
val span = Html.fromHtml(post.content)
The thing is, I need to make the link clickable but it should not be opened in the browser, instead I need to pass the link to my next activity in my android app. Hope I am clear enough!