测试问题修改
This commit is contained in:
@@ -776,13 +776,13 @@ class ArticleParserService
|
|||||||
}
|
}
|
||||||
|
|
||||||
//处理超链接(优先提取链接目标,可能是邮箱)
|
//处理超链接(优先提取链接目标,可能是邮箱)
|
||||||
// if ($element instanceof \PhpOffice\PhpWord\Element\Link) {
|
if ($element instanceof \PhpOffice\PhpWord\Element\Link) {
|
||||||
// $target = $element->getTarget();
|
$target = $element->getTarget();
|
||||||
// if (strpos($target, 'mailto:') === 0) {
|
if (strpos($target, 'mailto:') === 0) {
|
||||||
// $text .= str_replace('mailto:', '', $target) . ' '; // 剥离mailto:前缀
|
$text .= str_replace('mailto:', '', $target) . ' '; // 剥离mailto:前缀
|
||||||
// }
|
}
|
||||||
// $text .= $element->getText() . ' ';
|
$text .= $element->getText() . ' ';
|
||||||
// }
|
}
|
||||||
|
|
||||||
//处理字段和注释(可能包含隐藏邮箱)
|
//处理字段和注释(可能包含隐藏邮箱)
|
||||||
if ($element instanceof \PhpOffice\PhpWord\Element\Field) {
|
if ($element instanceof \PhpOffice\PhpWord\Element\Field) {
|
||||||
|
|||||||
Reference in New Issue
Block a user