$tagss = explode(’,',$tags);
2、在該代碼上一行添加:
$tags = trim(ereg_replace(”[,;'%><\&;\*\?\r\n\t ]{1,}”,',',$tags));
3、然后繼續查找:
$tags = explode(’,',$tag);
4、在該代碼上一行添加:
$tag = trim(ereg_replace(”[,;'%><\&;\*\?\r\n\t ]{1,}”,',',$tag));
本人總結的方法,實際以上紅色部分應該添加的代碼是這樣的:
$tags = trim(ereg_replace("[,;'%><\&;\*\?\r\n\t ]{1,}",',',$tags));