escapeQuotes Summary Escapes all double and single quotes. Usage public string escapeQuotes() Returns The string with all double and single quotes prefixed with a backslash character. Description Escapes all double (") and single quotes (') by adding prefixing them with a single backslash (\) character. Examples Basic Usage 1234import System; string divElement = """<div id="box"></div>""";Console.log(divElement.escapeQuotes()); // <div id=\"box\"></div> Share HTML | BBCode | Direct Link