I am attempting to create a simple blog that has a post article function that contains a ckeditor. When I insert text from ckeditor and store it in the database, I want to get the content from the database to show it on my index page.
The problem is that it can show the content but it displays the HTML tags
To display string as Html in ASP.NET.MVC use this one:
@Html.Raw(@Model.PropertyName)
where PropertyName
is the name of your property
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.