The Android function Html.fromHtml automatically converts unwanted text into hyperlinks.
Here is my code:
String htmlContent= "corners of nail.It has to";
textViewContent.setTextHtml.fromHtml(htmlContent));
textViewContent.setText(comment.getContent());
In the above code, Html.fromHtml treats "nails.It" as a link and converts it into a hyperlink.
Here is the result of the converted string.

One solution I could think of is to put in a place after a full break. Is there a good solution?
source
share