Test Page for
sap.ui.commons.FormattedTextView
CSS classes
.foo { color: red; }
Text given to FormattedTextView
Result