开发者

Actual html markup not html entity when inserted from model property in mvc3

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, s开发者_开发百科tories 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&gt;&lt;STRONG&gt;ASSOCIATE MEMBERSHIP&lt;/STRONG&gt;&lt;BR&gt;&lt;BR&gt;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 );
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜