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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -