I am making an application in MVC3, i am storing a string in database in this format
<a href='path'>Text</a> Happy
The field is saving properly but i have to display it in web page with hyper link like
Text Happy
but currently it is showing like
<a href='path'>Text</a> Happy
How can i render this string as HTML on web page?
If you're using the Razor template engine:
@Html.Raw(mystring)
If you are using Razor you can use @Html.Raw()
as per Phil Haack's quick reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With