-
Notifications
You must be signed in to change notification settings - Fork 205
Frequently Asked Questions
HtmlSanitizer raises a number of events prior to performing it's sanitizing actions, all of which can be overridden by your own delegates. See the Hooks/Events topic for the available events.
The default formatter outputs markup as HTML, which does not use self-closing tags. You can override that behavior by using the XhtmlFormatter, which will output XML-compliant HTML (i.e. self-closing tags).
To put it simply, AngleSharp constantly introduces breaking changes in their API (see #78, #76 , #68, #64 and #53, for example).
Strictly speaking, yes. HtmlSanitizer is optimized for HTML, though, so you're likely going to have to use some post-processing to get the correct output for other markup syntaxes. You'll also need to configure the AllowedTags and AllowedAttributes options for the tags and attributes your markup files can contain.