mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-10-26 11:11:56 +00:00
Merge 98376d2337 into 146a6c01cc
This commit is contained in:
commit
abc2792dc2
@ -13,6 +13,7 @@ trait HtmlDescriptionTrait
|
||||
public function descriptionHtml(bool $raw = false): string
|
||||
{
|
||||
$html = $this->description_html ?: '<p>' . nl2br(e($this->description)) . '</p>';
|
||||
$html = preg_replace('/<p>(\s| |<br\s*\/?>)*<\/p>/i', '', $html);
|
||||
if ($raw) {
|
||||
return $html;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user