在MVC应用程序中显示HTML链接 [英] Displaying HTML link in an MVC application
本文介绍了在MVC应用程序中显示HTML链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I&NBSP;创建了一个表单,该表单使用文本编辑器将内容发布到数据库。但是,在我的新闻页面上,该链接并未显示为超链接,而是显示为HTML 像这样< a href =" www.microsoft.com"> Microsoft.com< / a>
I have created a form which use a text editor to post content to the database. However on my news page the link are not showing as hyperlink but as HTML like this <a href="www.microsoft.com">Microsoft.com</a>
我正在使用@ Html.displayFor帮助
I am using the @Html.displayFor helper
<p> @Html.DisplayFor(modelItem => item.postContent)</p>
我缺少什么?
推荐答案
你好jaydee777,
Hi jaydee777,
请在 ASP.NET论坛
中发布,以便您获得更好的回复。
Please post in ASP.NET forums where you could get better responses.
ASP.NET论坛 >>
General ASP.NET 一>&NBSP;>>
MVC
ASP.NET Forums >> General ASP.NET >> MVC
谢谢为了您的理解。
这篇关于在MVC应用程序中显示HTML链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文