C# Class Sakura.AspNetCore.Mvc.Internal.StringToHtmlContentConverter

Provide helper methods to convert string value to IHtmlContent object. This class is static.
Datei anzeigen Open project: sgjsakura/AspNetCore

Public Methods

Method Description
ToHtmlContent ( this value, bool encodeContent ) : IHtmlContent

Convert a string value to IHtmlContent object.

Method Details

ToHtmlContent() public static method

Convert a string value to IHtmlContent object.
public static ToHtmlContent ( this value, bool encodeContent ) : IHtmlContent
value this The value of the string.
encodeContent bool /// Control whether the should be HTML-encoded before be written to a /// page. ///
return IHtmlContent