There might be scenario, where we want to allow HTML code (Rich Text) as input to the Action method of the controller.
To do this, add ValidateInput attribute in the action method like below
[HttpPost]
[ValidateInput(false)]
public ActionResult Messages(FormCollection collection) {
// remaining code goes here
}
Hope this helps.