1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Input WYSIWYG: Fixed existing tests, fixed empty description handling

This commit is contained in:
Dan Brown
2023-12-20 17:21:09 +00:00
parent 7fd6d5b2cc
commit a21ca44633
7 changed files with 17 additions and 8 deletions

View File

@@ -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()];