What is the alternate of [AllowHtml] in ASP.Net Core 2.0 [duplicate]
问题 This question already has an answer here : Generate web page from Database using AllowHtml in Asp.Net Core 2.0 (1 answer) Closed 2 years ago . I want to integrate CKEditor in my MVC Core 2.0 Application, in previous version I used it by adding [AllowHTML] data annotation to my string property. But in ASP.Net Core I could not find the right way to insert HTML into string input. My code in in ASP.Net MVC 5 [AllowHtml] [DataType(DataType.MultilineText)] public string Profile { get; set; } but in