<%= Html.TextArea("PostContent.Description", Model.PostContent.Description)%>
,如果我默認輸入
"I am <script>alert()</script> After scrip",
I will get<p>I am <script>alert()</script> After scrip</p>
。
但我不希望這種行爲。我怎樣才能關閉此默認行爲只爲這個文本框
請注意,我只是想處理這個文本框只。
[MVC 2]
這不起作用:( – 2011-06-02 06:35:37