unescapeQuotes

Summary

Removes the leading backslash from all escaped double and single quotes.

Usage

public string unescapeQuotes()

Returns

The string with all escaped double and single quotes without the leading backslash escape character.

Description

Replaces all escaped double quotes (\") and single quotes (\') with their unescaped equivalents (" and ', respectively).

Examples

Basic Usage
1
2
3
4
import System;
 
string escaped = """<div id=\"box\"></div>""";
Console.log(escaped.unescape()); // <div id="box"></div>

Share

HTML | BBCode | Direct Link