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
The following css:
@font-face { font-family: FrutigerLTStd; src: url("https://example.com/FrutigerLTStd-Light.otf") format("opentype"); }
Get's malformed to:
@font-face { font-family: FrutigerLTStd src: url("https://example.com/FrutigerLTStd-Light.otf") format("opentype") }
which does not work without a semicolon between font-family and src
using the following rules:
var sanitizer = new HtmlSanitizer(); sanitizer.AllowDataAttributes = true; sanitizer.AllowedAtRules.Add(CssRuleType.Import); sanitizer.AllowedAtRules.Add(CssRuleType.FontFace); sanitizer.AllowedTags.Add("style"); sanitizer.AllowedTags.Add("link"); sanitizer.AllowedTags.Add("picture"); sanitizer.AllowedAttributes.Add("style"); sanitizer.AllowedAttributes.Add("class"); sanitizer.AllowedCssProperties.Add("background-size"); sanitizer.AllowedCssProperties.Add("box-sizing"); sanitizer.AllowedCssProperties.Add("position"); sanitizer.AllowedCssProperties.Add("src"); sanitizer.AllowedCssProperties.Add("font-family");
The text was updated successfully, but these errors were encountered:
This is due to a bug in AngleSharp. I have created AngleSharp/AngleSharp#382.
Sorry, something went wrong.
Add test for #80
70066eb
21590d7
No branches or pull requests
The following css:
Get's malformed to:
which does not work without a semicolon between font-family and src
using the following rules:
The text was updated successfully, but these errors were encountered: