|
...
|
...
|
@@ -193,6 +193,7 @@ class TranslateLogic extends BaseLogic |
|
|
|
$trimmedString = preg_replace('/\s+/', ' ', $content);
|
|
|
|
$contentData[] = $trimmedString;
|
|
|
|
}
|
|
|
|
$textContentArray = array_unique($textContentArray);
|
|
|
|
$contentData = array_values($textContentArray);
|
|
|
|
$pattern = '/<meta\s+[^>]*name=[\'"](keywords|description)[\'"][^>]*content=[\'"]([^\'"]+)[\'"]>/i'; // 匹配 name 为 "keywords" 或 "description" 的 meta 标签的正则表达式
|
|
|
|
$matches = array();
|
...
|
...
|
|