We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm using the latest version that is on NuGet. When I try to sanitize the attached HTML it throws the following exception
at System.Text.StringBuilder.Append(String value, Int32 startIndex, Int32 count) at Ganss.Xss.HtmlSanitizer.SanitizeStyleDeclaration(IElement element, ICssStyleDeclaration styles, String baseUrl) at Ganss.Xss.HtmlSanitizer.SanitizeStyle(IElement element, String baseUrl) at Ganss.Xss.HtmlSanitizer.DoSanitize(IHtmlDocument dom, IParentNode context, String baseUrl) at Ganss.Xss.HtmlSanitizer.SanitizeDom(IHtmlDocument document, IHtmlElement context, String baseUrl) at ChromiumHtmlToPdfLib.Helpers.DocumentHelper.SanitizeHtml(ConvertUri inputUri, HtmlSanitizer sanitizer, ConvertUri& outputUri, List`1& safeUrls) in C:\XXXXX\ChromiumHtmlToPdf\ChromiumHtmlToPdfLib\Helpers\DocumentHelper.cs:line 269
The text was updated successfully, but these errors were encountered:
0b8b5d1
Thanks for reporting this. Fixed in 8.0.718 and 8.1.719-beta.
Sorry, something went wrong.
No branches or pull requests
Hi,
I'm using the latest version that is on NuGet. When I try to sanitize the attached HTML it throws the following exception
at System.Text.StringBuilder.Append(String value, Int32 startIndex, Int32 count)
at Ganss.Xss.HtmlSanitizer.SanitizeStyleDeclaration(IElement element, ICssStyleDeclaration styles, String baseUrl)
at Ganss.Xss.HtmlSanitizer.SanitizeStyle(IElement element, String baseUrl)
at Ganss.Xss.HtmlSanitizer.DoSanitize(IHtmlDocument dom, IParentNode context, String baseUrl)
at Ganss.Xss.HtmlSanitizer.SanitizeDom(IHtmlDocument document, IHtmlElement context, String baseUrl)
at ChromiumHtmlToPdfLib.Helpers.DocumentHelper.SanitizeHtml(ConvertUri inputUri, HtmlSanitizer sanitizer, ConvertUri& outputUri, List`1& safeUrls) in C:\XXXXX\ChromiumHtmlToPdf\ChromiumHtmlToPdfLib\Helpers\DocumentHelper.cs:line 269
The text was updated successfully, but these errors were encountered: