Class HtmlEncodedStringExtensions
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class HtmlEncodedStringExtensions
Methods
View SourceIsNullOrWhiteSpace(IHtmlEncodedString, Boolean)
Checks if the specified IHtmlEncodedString is null or only contains whitespace, optionally after all HTML tags have been stripped/removed.
Declaration
public static bool IsNullOrWhiteSpace(this IHtmlEncodedString htmlEncodedString, bool stripHtml = false)
Parameters
| Type | Name | Description |
|---|---|---|
| IHtmlEncodedString | htmlEncodedString | The encoded HTML string. |
| System.Boolean | stripHtml | If set to |
Returns
| Type | Description |
|---|---|
| System.Boolean | Returns |