Declaration
public static string JsEscape(
this string input,
JsQuotes quotes = JsQuotes.Double
)
Summary
Returns a JavaScript- or JSON-compatible representation of the string with the appropriate characters escaped.
Parameters
this 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.