Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 13, 2012 01:54 AM by bruce (sqlwork.com)
0 Points
2 Posts
Dec 13, 2012 01:29 AM|LINK
I don't help @Model.ArticleBody display only text, i think html tags are converted automatically, I hope it display html context. How to solve it? thanks.
All-Star
36870 Points
5450 Posts
Dec 13, 2012 01:54 AM|LINK
to prevent html/script injection, the default is to encode. use @Html.Raw() if you want to bypass encoding.
pinbor.he
0 Points
2 Posts
why model encode html context
Dec 13, 2012 01:29 AM|LINK
I don't help @Model.ArticleBody display only text, i think html tags are converted automatically, I hope it display html context. How to solve it? thanks.
bruce (sqlwo...
All-Star
36870 Points
5450 Posts
Re: why model encode html context
Dec 13, 2012 01:54 AM|LINK
to prevent html/script injection, the default is to encode. use @Html.Raw() if you want to bypass encoding.