HtmlExtensions.AttributeSafe Method

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

AttributeSafe(String)

Converts quotation marks ("), ampersands (&) and left angle brackets (<) to equivalent character entities. The result should be used only for attributes that are in double quotation marks.

public static string AttributeSafe(this string text)

Parameters

text
System.String

Returns

System.String

The converted text.