text: function trim(str,charlist){var e,t=0,f=0;for(str+="",charlist?(charlist+="",e=charlist.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,"$1")):e=" \n\r\t\f\x0b\xa0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000",t=str.length,f=0;t>f;f++)if(-1===e.indexOf(str.charAt(f))){str=str.substring(f);break}for(t=str.length,f=t-1;f>=0;f--)if(-1===e.indexOf(str.charAt(f))){str=str.substring(0,f+1);break}return-1===e.indexOf(str.charAt(0))?str:""}
  