title: font color android html
body: <p>I am making a note application and want the user to be able to edit in rich text.</p>
  
  <p>The user writes the note, then it gets converted into html and saved into a database.</p>
  
  <p>This way when it is retrieved from the database, it does not lose its rich text.</p>
  
  <p>Yet I am having a problem, if the user adds a color to their text and saves the note it converts it to html like this</p>
  
  <pre><code>"&lt;p&gt;&lt;font color=#0000ff&gt;user text&lt;/font&gt;&lt;/p&gt;"
  </code></pre>
  
  <p>when retrieved from the database no text color shows up. this is because android saves the html wrong. In order for android to get color from html the letters need to be capitalized like this</p>
  
  <pre><code>"&lt;p&gt;&lt;font color=#0000FF&gt;user text&lt;/font&gt;&lt;/p&gt;"
  </code></pre>
  
  <p>This confuses me because if android can only read it in caos why doesn't it convert it in that way.</p>
  
  <p><strong>How do I get it so when this code runs</strong></p>
  
  <pre><code>    //--save to string--//
      Editable e = noteContent.getText();
      String s2 = Html.toHtml(e);
  
      Spanned s3 = Html.fromHtml(s2);
      classes.setText(s3);
  </code></pre>
  
  <p><strong>to save the text color to the caps. so when it is retrieved form the database the text color shows up.</strong> </p>
  
  <p>Thanks, </p>
  
  <p>Jordan</p>