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: void AppendJsEscaped(this StringBuilder, string, JsQuotes)Declarationpublic static void AppendJsEscaped(
this StringBuilder sb,
string input,
JsQuotes quotes = JsQuotes.Double
) Summary
Appends a JavaScript- or JSON-compatible representation of the string with the appropriate characters escaped into
the specified StringBuilder. Parametersthis StringBuilder | sb |
The StringBuilder to add the result to. | string | input |
String to escape. | JsQuotes | quotes |
Specifies what type of quotes to put around the result, if any. |
|