HtmlExtensions.StripHtml Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

StripHtml(String, Boolean)

Returns a string with all HTML tags and comments removed. This is useful for displaying HTML in plain text and stripping formatting like bold and italics.

public static string StripHtml(this string html, bool br = false)

Parameters

html
System.String
br
System.Boolean

Returns

System.String

The stripped string.