diff --git a/var/Widget/Abstract/Contents.php b/var/Widget/Abstract/Contents.php index 397c8f1f..eaddb78e 100644 --- a/var/Widget/Abstract/Contents.php +++ b/var/Widget/Abstract/Contents.php @@ -70,7 +70,7 @@ class Widget_Abstract_Contents extends Widget_Abstract */ protected function ___description() { - $plainTxt = trim(strip_tags($this->text)); + $plainTxt = str_replace("\n", '', trim(strip_tags($this->excerpt))); $plainTxt = $plainTxt ? $plainTxt : $this->title; return Typecho_Common::subStr($plainTxt, 0, 100, '...'); }