mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Input WYSIWYG: Fixed existing tests, fixed empty description handling
This commit is contained in:
@@ -31,6 +31,10 @@ class HtmlDescriptionFilter
|
||||
|
||||
public static function filterFromString(string $html): string
|
||||
{
|
||||
if (empty(trim($html))) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$doc = new HtmlDocument($html);
|
||||
|
||||
$topLevel = [...$doc->getBodyChildren()];
|
||||
|
Reference in New Issue
Block a user