I have an application use Asp.Net 4.61 in which I read html from a database field Description and use it to populate my a page in my application. I do this by marking the property Description with [AllowHtml]
.
In my Asp.Net Core 2.0 app, I get an error that the assembly reference or directive is not found.
I have 2 questions - that will hopefully enable me to better answer questions such as this in the future:
[AllowHtml]
?You don't need [AllowHtml] anymore, because nobody denies HTML in ASP.NET Core 2.0:
Don't need [AllowHtml] or RequestValidationEnabled because we don't have request validation in this system
Instead, encode the output and Prevent Cross-Site Scripting
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With