Class HtmlContentExtensions
Extensions to Microsoft.AspNetCore.Html.IHtmlContent.
Inheritance
System.Object
HtmlContentExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.AspNetCore.Html
Assembly: ChameleonForms.Core.dll
Syntax
public static class HtmlContentExtensions
Methods
| Improve this Doc View SourceToHtmlString(IHtmlContent)
Returns the encoded HTML string for the Microsoft.AspNetCore.Html.IHtmlContent.
Declaration
public static string ToHtmlString(this IHtmlContent htmlContent)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Html.IHtmlContent | htmlContent | The Microsoft.AspNetCore.Html.IHtmlContent to extract the string for |
Returns
Type | Description |
---|---|
System.String | The encoded HTML in string form |