public HtmlFilterSettings(HtmlFilteringMode processingMode) { _document = new HtmlElementRule(null, "html", HtmlElementOptions.Allowed | HtmlElementOptions.AllowContent | HtmlElementOptions.UseTypography); _preserveWhitespace = true; _mode = processingMode; }