Is there a way to use TextBoxFor helper with encoded text?
for example: When using the following helper of MVC3 With Razor view engine :
@Html.TextBoxFor(model => model.Description)
and the value of model.Description is encoded, for example:
<script>alert();'</script>
the result is text box with the the encoded string, when the wanted result is text box with the decoded string:
<script>alert();'</script>
Is there a way to use the MVC TextBoxFor with encoded string instead of using
@Html.TextBox("Description", Server.HtmlDecode(Model.Description))
?