HtmlString Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IHtmlContent implementation that wraps an HTML encoded String.
public ref class HtmlString : Microsoft::AspNetCore::Html::IHtmlContent
C#
public class HtmlString : Microsoft.AspNetCore.Html.IHtmlContent
type HtmlString = class
interface IHtmlContent
Public Class HtmlString
Implements IHtmlContent
- Inheritance
-
HtmlString
- Implements
Html |
Creates a new HtmlString. |
Empty |
An HtmlString instance for Empty. |
New |
An HtmlString instance for NewLine. |
Value |
Gets the HTML encoded value. |
To |
Returns a string that represents the current object. |
Write |
Writes the content by encoding it with the specified |
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |