HTML to text

Install-Package NUglify

public static IHtmlContent HtmlToText<T>(this IHtmlHelper<T> html, string htmlText)
    => new StringHtmlContent(Uglify.HtmlToText($"<div>{htmlText}</div>").ToString());

Comments

Popular posts from this blog

C# Record Serialization

Add timestamp to photo using ImageMagick

Read/write large blob to SQL Server from C#