Skip to content

Commit

Permalink
Update ShortContentExtractor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
magefan authored May 5, 2022
1 parent 9a3fe61 commit 5956082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/ShortContentExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function execute($content, $len = null, $endСharacters = null)
}

/* Skip long HTML */
$stcc = trim(strip_tags($cc));
$stcc = trim(strip_tags((string)$cc));
//if ($stcc && strlen($stcc) < strlen($cc) / 3) {
if ($stcc && $len < mb_strlen($content)) {
$str = '';
Expand Down

0 comments on commit 5956082

Please sign in to comment.