title: Android - Breaking down a Spanned object
body: <pre><code>spanned = Html.fromHtml("&lt;sup&gt;aaa&lt;/sup&gt;bbb&lt;sub&gt;ccc&lt;/sub&gt;&lt;b&gt;ddd&lt;/b&gt;");
  </code></pre>
  
  <p>Will create a Spanned object with with 3 spans <code>aaa</code>, <code>ccc</code>, <code>ddd</code>. </p>
  
  <p><code>bbb</code> is being ignored since it's not inside an html tag, </p>
  
  <pre><code>spans = spanned.getSpans(0, spanned.length(), Object.class);
  </code></pre>
  
  <p>will only identify 3 spans.</p>
  
  <p>I need a way to extract all the 4 sections of the code, if possible into some sort of an array that will allow to me to identify the the type of each span.</p>