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