PHP-функция: stripslashesСписок php-функций

javascript:

function stripslashes( str ) {
	// Un-quote string quoted with addslashes()
	// 
	// +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
	// +   improved by: Ates Goral (http://magnetiq.com)
	// +	  fixed by: Mick@el
	// +   improved by: marrtins

	return str.replace('/\0/g', '0').replace('/\(.)/g', '$1');
}

//Примеры:

alert ( stripslashes('Kevin\'s code') );