Class ServicesConfiguration
Extension methods for registering HTML and SVG sanitization services into the dependency injection container.
Inherited Members
Namespace: DataWeb.Text.Html.AngleSharp
Assembly: DataWeb.Text.Html.AngleSharp.dll
Syntax
public static class ServicesConfiguration
Methods
AddDataWebTextHtml(IServiceCollection)
Registers HtmlService as the IHtmlService singleton implementation. The registration is skipped if an IHtmlService has already been registered.
Declaration
public static IServiceCollection AddDataWebTextHtml(this IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The IServiceCollection to add the service to. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The same IServiceCollection instance for chaining. |