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

网站建设 2022-07-27 09:12www.1681989.com免费网站
$tagss = explode(,,$tags); 2、在该代码上一行添加 $tags = trim(ereg_replace([,;%\\\?\r\n\t ]{1,},,,$tags)); 3、然后继续查找 $tags = explode(,,$tag); 4、在该代码上一行添加 $tag = trim(ereg_replace([,;%\\\ […]



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

Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by