getHtmlFormattedText

Creates a CharSequence from a string resource, which may contain arguments and HTML formatting.

The string resource must be wrapped in a CDATA section so that the HTML formatting is preserved, like for instance so:

<string name="html_formatted"><![CDATA[bold text: <b>%1$s</b>]]></string>

Taken from here