[]
Encodes a CSS string by replacing apostrophes, quotes, and other characters with \xxx where xxx is the UTF code.
public static string CssEncode(this string value)
Type | Name | Description |
---|---|---|
string | value | The string to encode. |
Type | Description |
---|---|
string | The encoded string if it contains any symbols that need to be encoded; otherwise, the input string. |