lib/packages/parsers.js
function(raw_string) {

		var map = Firestorm.String.quote_escape_map,
			result;

		try {
			result = eval("(" + raw_string.replace(this.UNQUOTE_ESCAPE_REGEX, function (a) {
				var c = map[a];
				return typeof c == 'string' ? c : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
			}) + ")");
		} catch (e) {
			Lava.t("Malformed string: " + raw_string);
		}

		return result;

	}
function(raw_string) {

		var map = Firestorm.String.quote_escape_map,
			result;

		try {
			result = eval("(" + raw_string.replace(this.UNQUOTE_ESCAPE_REGEX, function (a) {
				var c = map[a];
				return typeof c == 'string' ? c : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
			}) + ")");
		} catch (e) {
			Lava.t("Malformed string: " + raw_string);
		}

		return result;

	}
function ( raw_string ) { var map = Firestorm . String . quote_escape_map , result ; try { result = eval ( "(" + raw_string . replace ( this . UNQUOTE_ESCAPE_REGEX , function ( a ) { var c = map [ a ] ; return typeof c == 'string' ? c : '\\u' + ( '0000' + a . charCodeAt ( 0 ) . toString ( 16 ) ) . slice ( - 4 ) ; } ) + ")" ) ; } catch ( e ) { Lava . t ( "Malformed string: " + raw_string ) ; } return result ; }
Turn a serialized and quoted string back into it's JavaScript representation.

Assume that everything that follows a backslash is a valid escape sequence
(all backslashes are prefixed with another backslash).

Quotes inside string: lexer's regex will match all escaped quotes

@param {string} raw_string
@returns {string}
Turn a serialized and quoted string back into it s JavaScript representation .