mganss / HtmlSanitizer

Cleans HTML to avoid XSS attacks
MIT License
1.55k stars 200 forks source link

Problem with System.Text.Encoding.CodePages Version=6.0.0.0 #363

Closed nicolairosenberg closed 2 years ago

nicolairosenberg commented 2 years ago

I keep getting issues with this dll, even if I use 'lowest' version of HtmlSanitizer.. I guess my host is supporting core 3.x, asp.net 5 and sadly not yet 6.0..

Could this be the issue? and it seems it derives from AngleSharp hmm?

mganss commented 2 years ago

AngleSharp supports netstandard2.0 which is implemented by .NET Core 2.0 and above: https://docs.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0

HtmlSanitizer does not take a direct dependency on System.Text.Encoding.CodePages. Perhaps this is a duplicate of, or perhaps related to, #341 which in turn is probably caused by https://github.com/AngleSharp/AngleSharp/issues/968