解决方法很简单,不像网上说的那么麻烦。只需一步: [ValidateInput(false)] public ActionResult Test(){ } 转载于:https://www.cnblogs.com/slmk/p/7122230.html