简体   繁体   中英

How to remove HTML tags from ckeditor to textarea

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM