[问题] 邮件链接过长被过滤情况
[解决方法] php
function insertWBR($str, $number = 20){
$pattern = "/([\w|\d|\.]\{$number})/";
$replacement = "\\1<wbr>";
return preg_replace($pattern, $replacement, $str);
}
[问题] 邮件链接过长被过滤情况
[解决方法] php
function insertWBR($str, $number = 20){
$pattern = "/([\w|\d|\.]\{$number})/";
$replacement = "\\1<wbr>";
return preg_replace($pattern, $replacement, $str);
}