java - How to prevent Android from inserting the trailing \n\n when SetText using Html.FromHtml()? -
i settext edittext way:
edittext.settext(html.fromhtml("<p><a href='#'>cadbury</a> fav chocolate</p>");
problem is, line inserts 2 additional breakpoints on edittext
when value using html.tohtml(edittext.gettext())
result is:
"<p><a href='#'>cadbury</a> fav chocolate</p>\n\n"
i dont want trailing \n's, how remove them?
Comments
Post a Comment