ValidateInput(false) vs AllowHtml

后端 未结 2 436
旧巷少年郎
旧巷少年郎 2020-12-07 18:48

I have a form that is used to create a memo, to do that I am using a rich text editor to provide some styling, this creates html tags in order to apply style. When I post th

2条回答
  •  感情败类
    2020-12-07 19:09

    if use Bind Include best way is AllowHtml otherwise you can use ValidateInput(false) to disable all Validaton in controll

提交回复
热议问题