Is there a way in visualforce to interpret html tags in string fields from apex class?
What I am looking for is, say I have
String str1="Dormammu! <div style='color:#313131;'> I have come to bargain!</div>";
in apex class.
And if I use {!str1} in my visualforce page, how to make it such that style defined in the string is applied to I have come to bargain!
From what I tried, the text displayed in Visualforce page is
Dormammu! <div style='color:#313131;'> I have come to bargain!</div>