title: HTML tags not working within strings.xml
body: <p>I was trying to make bold text within my strings.xml using the HTML tag &lt;b> and &lt;/b> as per this <a href="https://stackoverflow.com/questions/10019001/how-do-you-underline-a-text-in-android-xml">answer</a>:</p>
  
  <pre><code>&lt;string name="name"&gt;&lt;b&gt;bold text here&lt;/b&gt;&lt;/string&gt;
  </code></pre>
  
  <p>And then trying to set the text as follows:</p>
  
  <pre><code>TextView textview = new TextView(getActivity());
  textview.setText(getString(R.string.name));
  </code></pre>
  
  <p>However this is not working at all, the tags are ignored and the text is displayed regularly. I have been able to make the text bold using the following method:</p>
  
  <pre><code>&lt;string name="name"&gt;&amp;lt;b&gt;bold text here&amp;lt;/b&gt;&lt;/string&gt;
  </code></pre>
  
  <p>And with this code in Java:</p>
  
  <pre><code>TextView textview = new TextView(getActivity());
  textview.setText(Html.fromHtml(getString(R.string.name)));
  </code></pre>
  
  <p>Why will the simple HTML tags not work yet this other method works just fine?</p>