Skip to main content
 Web开发网 » 站长学院 » 织梦教程

DedeCms标签tag逗号增加空格的方法

2020年09月12日5770百度已收录

$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));

评论列表暂无评论
发表评论
微信