Merge remote-tracking branch 'origin/master' into akun
正在显示
1 个修改的文件
包含
0 行增加
和
2 行删除
| @@ -199,8 +199,6 @@ class ProofreadingController extends BaseController | @@ -199,8 +199,6 @@ class ProofreadingController extends BaseController | ||
| 199 | $strippedContent = preg_replace($pattern, '', $strippedContent); // 删除`<script>`标签及其内容 | 199 | $strippedContent = preg_replace($pattern, '', $strippedContent); // 删除`<script>`标签及其内容 |
| 200 | $pattern = '/<link\b[^>]*>/'; // 定义匹配 `<link>` 标签的正则表达式 | 200 | $pattern = '/<link\b[^>]*>/'; // 定义匹配 `<link>` 标签的正则表达式 |
| 201 | $strippedContent = preg_replace($pattern, '', $strippedContent); // 删除 `<link>` 标签 | 201 | $strippedContent = preg_replace($pattern, '', $strippedContent); // 删除 `<link>` 标签 |
| 202 | - $pattern = '/<footer\b[^>]*>(.*?)<\/footer>/s'; // 定义匹配`<script>`标签及其内容的正则表达式 | ||
| 203 | - $strippedContent = preg_replace($pattern, '', $strippedContent); // 删除`<script>`标签及其内容 | ||
| 204 | $pattern = '/>([^<]+)</'; // 定义匹配中间内容不是标签的正则表达式 | 202 | $pattern = '/>([^<]+)</'; // 定义匹配中间内容不是标签的正则表达式 |
| 205 | $matches = array(); | 203 | $matches = array(); |
| 206 | preg_match_all($pattern, $strippedContent, $matches); | 204 | preg_match_all($pattern, $strippedContent, $matches); |
-
请 注册 或 登录 后发表评论