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
Example code:
var url = "..."; // data: url with length >= 24294 var html = $@"<style>@font-face {{ font-family: ""MyFont""; src: url(""{url}"") format('woff'); font-weight: normal; font-style: normal; font-display: swap; }}</style>"; var parser = new HtmlParser(new HtmlParserOptions(), BrowsingContext.New(Configuration.Default.WithCss(new CssParserOptions { IsIncludingUnknownDeclarations = true, IsIncludingUnknownRules = true, IsToleratingInvalidSelectors = true, }))); var dom = parser.ParseDocument(html); var css = ((ICssStyleSheet)dom.StyleSheets[0]).Rules[0].CssText; // -> @font-face { font-family: "MyFont"; src: ; font-weight: normal; font-style: normal }
This seems to be the root cause of the issue reported in mganss/HtmlSanitizer#66 (comment)
The text was updated successfully, but these errors were encountered:
Thanks for the report. I'll look into it!
Sorry, something went wrong.
Fixed issue with longer data URIs #76
d94f8f8
Available in devel and the 0.16.1 (prerelease / release later).
devel
0.16.1
No branches or pull requests
Example code:
This seems to be the root cause of the issue reported in mganss/HtmlSanitizer#66 (comment)
The text was updated successfully, but these errors were encountered: