Is there a way to store this on sqlite that doesn't imply storing the whole XML describing the paragraph?
I do not know what "the whole XML describing the paragraph" is. You can:
Use
Html.toHtml()
to generate HTML from aSpannable
, orRoll your own code to convert a
Spannable
into something that can be stored as a string or byte array