title: Get source HTML from encoded EditText in Android
body: <p>I'm displaying formatted text in an EditText as such:</p>
  
  <pre><code>String msg = &lt;b&gt;Some text here&lt;/b&gt;;
  EditText txtMsg = (EditText) findViewById(R.id.txtMessage);
  txtMsg.setText(Html.fromHtml(msg));
  </code></pre>
  
  <p>That displays in the EditText as "<strong>Some text here.</strong>" Then, later, I'd like to pull the text from that EditText complete with the tags. However, when I use:</p>
  
  <pre><code>txtMsg.getText().toString();
  </code></pre>
  
  <p>It just gives me "Some text here" with no formatting. </p>
  
  <p>Any thoughts on this?</p>