Let me explain in detail There is textarea in form. On submitting form,the text of textarea get stored in database. While display those texts from database I want to execute basic html code like <b><i><u>...etc For example:-If user entered "<b>hello</b>" in textarea.Then this word "hello" will display in bold letters.
在视图中使用@Html.Raw( [your HTML code from the database] )
。
在您的剃刀文件中:
<b>@myHtmlFromTheDatabase</b>
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.