|
...
|
...
|
@@ -164,7 +164,8 @@ class ProofreadingController extends BaseController |
|
|
|
preg_match_all($pattern, $strippedContent, $matches);
|
|
|
|
$textContentArray = array_filter($matches[1], function($item) {
|
|
|
|
$content = trim($item);
|
|
|
|
var_dump($content);
|
|
|
|
$trimmedString = preg_replace('/\s+/', ' ', $content);
|
|
|
|
var_dump($trimmedString);
|
|
|
|
return !empty(trim($item));
|
|
|
|
});
|
|
|
|
$textContentArray = array_values($textContentArray);
|
...
|
...
|
|