HtmlFormatterExtensions Class
Provides extension methods to register the HTML formatter.
public static class HtmlFormatterExtensionsMethods
| Name | Description |
|---|---|
| AddHtmlFormatter(HumanReadableSerializerOptions, HtmlFormatterOptions?) | Formats the values whose media type is text/html: the value is parsed and serialized back, as defined by the HTML specification. |
AddHtmlFormatter(HumanReadableSerializerOptions, HtmlFormatterOptions?)
HtmlFormatterExtensions.csFormats the values whose media type is text/html: the value is parsed and serialized back, as defined by the HTML specification.
public static HumanReadableSerializerOptions AddHtmlFormatter(this HumanReadableSerializerOptions serializerOptions, HtmlFormatterOptions? formatterOptions = null)Parameters
serializerOptionsHumanReadableSerializerOptions- The options to add the formatter to.
formatterOptionsHtmlFormatterOptions?- The options of the formatter, or
nullto use the default options.
Returns
HumanReadableSerializerOptions serializerOptions.