作者 lyh

gx

@@ -163,7 +163,7 @@ class ProofreadingController extends BaseController @@ -163,7 +163,7 @@ class ProofreadingController extends BaseController
163 $matches = array(); 163 $matches = array();
164 preg_match_all($pattern, $strippedContent, $matches); 164 preg_match_all($pattern, $strippedContent, $matches);
165 $textContentArray = array_filter($matches[1], function($item) { 165 $textContentArray = array_filter($matches[1], function($item) {
166 - var_dump($item); 166 + $content = trim($item);
167 return !empty(trim($item)); 167 return !empty(trim($item));
168 }); 168 });
169 $textContentArray = array_values($textContentArray); 169 $textContentArray = array_values($textContentArray);