AE.namespace('AE.widget.replaceWords');
/**
 * @function replaceWords
 * @discription 替换特殊字符
 * @param str {String} 需要替换的字符串
 */
AE.widget.replaceWords = function(str){

	var words = {
		"\\u201C" : 34,
		"\\u201D" : 34,
		"\\u2018" : 39,
		"\\u2019" : 39,
		"\\u3002" : 46,
		"\\u3001" : 44,
		"\\u3000" : 32,
		"\\u2022" : 45,
		"\\u2013" : 45,
		"\\u2026" : 46
	};
	var rxp;
	rxp = /[\uFF00-\uFF5F]/g;
	str = str.replace(rxp, function(s){
		return String.fromCharCode(str.charCodeAt(str.indexOf(s))-65248);
	});
	
	for(var w in words){
		rxp = eval('/' + w + '/g');
		str = str.replace(rxp, String.fromCharCode(words[w]));
	}
	return str;
}
