HtmlEscape(input, leaveSingleQuotesAlone, leaveDoubleQuotesAlone) Indent(str, by, indentFirstLine) ParseInt(str, default_, style, provider) Replace(str, oldValue, newValue, comparison)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: string JsEscapeNull(this string, JsQuotes)Declarationpublic static string JsEscapeNull(
this string input,
JsQuotes quotes = JsQuotes.Double
) Summary
Returns a JavaScript- or JSON-compatible representation of the string with the appropriate characters escaped.
Returns "null" if the input is null. Parametersthis string | input |
String to escape. | JsQuotes | quotes |
Specifies what type of quotes to put around the result, if any. |
Returns
JavaScript- or JSON-compatible representation of the input string, or the "null" keyword if the input is null. |