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:
- Is there a document/site that I could search to see if AllowHtml is
in Core 2.0
- Is there a better/more secure way that I should use if I want to
populate web pages by reading from my database than decorating the field/property with
[AllowHtml]
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…