Html.fromHtml() does not returns correct string. It cuts the last character if space is not given while making the text as italics in android
<pre><code>String str = "&lt;b&gt;&lt;i&gt;private&lt;/i&gt;&lt;/b&gt;";  
TextView tv =  (TextView) findViewbyid(R.id.textV);                 
tv.setText(Html.fromHtml(pvtString));  
</code></pre>

<p>the ouptput it gives is <strong><em>private</em></strong> but with the letter <strong><em>e</em></strong> having a little cut.</p>

<pre><code>But if we try :-  
String str = "&lt;b&gt;&lt;i&gt;private &lt;/i&gt;&lt;/b&gt;"; *(a space character after private)*   
TextView tv =  (TextView) findViewbyid(R.id.textV);  
tv.setText(Html.fromHtml(pvtString));
</code></pre>

<p>The output is correct with a proper string returned as <strong><em>private</em></strong></p>
