dist/yaml.legacy.js
function(value)
	{
		switch (value.charAt(1)) {
			case '0':
				return String.fromCharCode(0);
			case 'a':
				return String.fromCharCode(7);
			case 'b':
				return String.fromCharCode(8);
			case 't':
				return "\t";
			case "\t":
				return "\t";
			case 'n':
				return "\n";
			case 'v':
				return String.fromCharCode(11);
			case 'f':
				return String.fromCharCode(12);
			case 'r':
				return String.fromCharCode(13);
			case 'e':
				return "\x1b";
			case ' ':
				return ' ';
			case '"':
				return '"';
			case '/':
				return '/';
			case '\\':
				return '\\';
			case 'N':
				// U+0085 NEXT LINE
				return "\x00\x85";
			case '_':
				// U+00A0 NO-BREAK SPACE
				return "\x00\xA0";
			case 'L':
				// U+2028 LINE SEPARATOR
				return "\x20\x28";
			case 'P':
				// U+2029 PARAGRAPH SEPARATOR
				return "\x20\x29";
			case 'x':
				return this.pack('n', new YamlInline().hexdec(value.substr(2, 2)));
			case 'u':
				return this.pack('n', new YamlInline().hexdec(value.substr(2, 4)));
			case 'U':
				return this.pack('N', new YamlInline().hexdec(value.substr(2, 8)));
		}
	}
function(value)
	{
		switch (value.charAt(1)) {
			case '0':
				return String.fromCharCode(0);
			case 'a':
				return String.fromCharCode(7);
			case 'b':
				return String.fromCharCode(8);
			case 't':
				return "\t";
			case "\t":
				return "\t";
			case 'n':
				return "\n";
			case 'v':
				return String.fromCharCode(11);
			case 'f':
				return String.fromCharCode(12);
			case 'r':
				return String.fromCharCode(13);
			case 'e':
				return "\x1b";
			case ' ':
				return ' ';
			case '"':
				return '"';
			case '/':
				return '/';
			case '\\':
				return '\\';
			case 'N':
				// U+0085 NEXT LINE
				return "\x00\x85";
			case '_':
				// U+00A0 NO-BREAK SPACE
				return "\x00\xA0";
			case 'L':
				// U+2028 LINE SEPARATOR
				return "\x20\x28";
			case 'P':
				// U+2029 PARAGRAPH SEPARATOR
				return "\x20\x29";
			case 'x':
				return this.pack('n', new YamlInline().hexdec(value.substr(2, 2)));
			case 'u':
				return this.pack('n', new YamlInline().hexdec(value.substr(2, 4)));
			case 'U':
				return this.pack('N', new YamlInline().hexdec(value.substr(2, 8)));
		}
	}
function ( value ) { switch ( value . charAt ( 1 ) ) { case '0' : return String . fromCharCode ( 0 ) ; case 'a' : return String . fromCharCode ( 7 ) ; case 'b' : return String . fromCharCode ( 8 ) ; case 't' : return "\t" ; case "\t" : return "\t" ; case 'n' : return "\n" ; case 'v' : return String . fromCharCode ( 11 ) ; case 'f' : return String . fromCharCode ( 12 ) ; case 'r' : return String . fromCharCode ( 13 ) ; case 'e' : return "\x1b" ; case ' ' : return ' ' ; case '"' : return '"' ; case '/' : return '/' ; case '\\' : return '\\' ; case 'N' : // U+0085 NEXT LINE return "\x00\x85" ; case '_' : // U+00A0 NO-BREAK SPACE return "\x00\xA0" ; case 'L' : // U+2028 LINE SEPARATOR return "\x20\x28" ; case 'P' : // U+2029 PARAGRAPH SEPARATOR return "\x20\x29" ; case 'x' : return this . pack ( 'n' , new YamlInline ( ) . hexdec ( value . substr ( 2 , 2 ) ) ) ; case 'u' : return this . pack ( 'n' , new YamlInline ( ) . hexdec ( value . substr ( 2 , 4 ) ) ) ; case 'U' : return this . pack ( 'N' , new YamlInline ( ) . hexdec ( value . substr ( 2 , 8 ) ) ) ; } }
Unescapes a character that was found in a double-quoted string

@param string value An escaped character

@return string The unescaped character
Unescapes a character that was found in a double - quoted string