I am using HTML.fromHTML(...) to style my EditText text in Android. I need to pass the stylized text back as a result to another action. However, when I use the intention to pass the contents of the EditText, I cannot figure out how to maintain the HTML style of the source text.
As an example, suppose the source text in EditText:
Today 21 st
When I extract the text using edittext.getText() and send it back, the result is the following text:
Today is the 21st
Is there a way to extract an HTML style string from an EditText?
Mandel
source share