HtmlExtensions.HtmlSafe Method

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

HtmlSafe(String, Boolean)

Converts ampersands (&), left angle brackets (<), right angle brackets (>) and optionally line breaks (\n) to equivalent character entities.

public static string HtmlSafe(this string text, bool br = false)

Parameters

text
System.String
br
System.Boolean

Returns

System.String

The converted text.