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
- string
The text to convert.
Returns
string
The converted text.