//正则表达式去除所有空格和html标签(包括换行 空格 )
preg_replace(
"/(\s|\ \;| |\xc2\xa0)/"
,
""
strip_tags
(
$str
));