|
...
|
...
|
@@ -318,8 +318,10 @@ class LoginController extends BaseController |
|
|
|
die();
|
|
|
|
$pattern = '/>([^<]+)</'; // 定义匹配中间内容不是标签的正则表达式
|
|
|
|
$matches = array();
|
|
|
|
preg_match_all($pattern, $strippedContent, $matches);
|
|
|
|
$textContentArray = $matches[1];
|
|
|
|
preg_match_all($pattern, $content, $matches);
|
|
|
|
$textContentArray = array_filter($matches[1], function($item) {
|
|
|
|
return !empty(trim($item));
|
|
|
|
});
|
|
|
|
var_dump($textContentArray);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|