首页 > > > 怎样将数据库中的HTML内容按照浏览器解析在页面显示
例如:<p>This is a Text </p>,显示的时候是This is a Text
这是提交页面的
<textarea asp-for="Content" class="form-control" rows="3" placeholder="Your Content"></textarea>
显示页面应该怎样写呢?
现在是这样写的
<article>
<p>@Html.DisplayFor(model => model.Content)</p>
</article>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/887/viewspace-3147436/ ,如需转载,请注明出处,否则将追究法律责任。