It probably isn't mvc3 specific but when I insert a property in my razor view
@Model.description
containing html markup
P><STRONG>ASSOCIATE MEMBERSHIP</STRONG><BR><BR>Individuals who are interested in being involved with the SWPRG by submitting photo's, investigation reports, attending monthly meetings, leads, stories and talking to our On-Site Team Members about cases and other issues. <BR><STRONG><EM>BENEFITS INCLUDE:</EM></STRONG><BR>-
the browser renders the html with HTML Entities
lt;P><STRONG>ASSOCIATE MEMBERSHIP</STRONG><BR><BR>Individuals who are interested in being involv
How do I inject the HTML to be rendered as HTML?
@HTML.??(@Model.description);
@Html.Raw( Model.description );
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