mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 12:36:23 +05:30
Improvements
This commit is contained in:
parent
b2ceb921fd
commit
c7bf485275
4 changed files with 10 additions and 4 deletions
|
|
@ -909,7 +909,7 @@ function get_teaser($text)
|
|||
{
|
||||
$teaserType = config('teaser.type');
|
||||
|
||||
if (strlen(strip_tags($text)) < config('teaser.char') || $teaserType === 'full') {
|
||||
if ($teaserType === 'full') {
|
||||
echo $text;
|
||||
} else {
|
||||
$string = preg_replace('/\s\s+/', ' ', strip_tags($text));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue