android - Inverse/Reverse of Html.fromHtml(String) -
i creating note application myself. style notes, write html tags, click button , show styled version html. html.. problem is, need store text html tags not without when data database, text style.
so wonder there way decode embedded html tags other storing string before html. html function , acting accordingly? can click button anytime continue typing hard track. because run function stylize ;
text.settext(html.fromhtml(text.gettext().tostring()));
which means lose tag info.
thanks in advance.
if user of app write html tags, app should store them.
so suggest yourself, have store string before calling html.fromhtml
.
Comments
Post a Comment