2012-01-12 104 views
0

HTML文本我有可能包含在剃刀查看HTML文本(如MVC3字段包含驗證

<b>Dickens</b> 

)文本字段, 我顯示此字段

@Html.TextAreaFor(m => m.CurrentAuthor.AboutAuthorE) 

當點擊任何提交按鈕,mvc3拋出異常

A potentially dangerous Request.Form value was detected from the client (CurrentAuthor.AboutAuthorE="<div align=justify><..."). 

我該如何解決這個錯誤?

+0

它可以是這樣的帖子? http://stackoverflow.com/questions/7774161/ie-only-a-potentially-dangerous-request-form-value-was-detected-from-the-clien – 2012-01-12 07:55:08

+1

or this http://stackoverflow.com/questions/ 7218807/dynamic-html-content-a-potential-dangerous-request-form-value-was-detected – 2012-01-12 07:57:41

+0

感謝ABCade你的鏈接非常有用,我在http://stackoverflow.com/questions/81991/找到了答案。一個-潛在危險請求型 - 值被檢測到的從 - 所述客戶端 – 2012-01-12 08:24:21

回答