Microsoft.AspNetCore.Html Namespace

Contains types for manipulating HTML content.

Classes

HtmlContentBuilder

An IHtmlContentBuilder implementation using an in memory list.

HtmlContentBuilderExtensions

Extension methods for IHtmlContentBuilder.

HtmlFormattableString

An IHtmlContent implementation of composite string formatting (see https://msdn.microsoft.com/en-us/library/txafckwd(v=vs.110).aspx) which HTML encodes formatted arguments.

HtmlString

An IHtmlContent implementation that wraps an HTML encoded String.

Interfaces

IHtmlContent

HTML content which can be written to a TextWriter.

IHtmlContentBuilder

A builder for HTML content.

IHtmlContentContainer

Defines a contract for IHtmlContent instances made up of several components which can be copied into an IHtmlContentBuilder.

Remarks

For more information about creating encoded HTML content, see Prevent Cross-Site Scripting (XSS) in ASP.NET Core.