Declaration
public 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.
Parameters
this 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. |