]> BookStack Code Mirror - bookstack/commit
Fixed content parsing break with line html comment
authorDan Brown <redacted>
Sun, 13 Jun 2021 11:53:04 +0000 (12:53 +0100)
committerDan Brown <redacted>
Sun, 13 Jun 2021 11:53:04 +0000 (12:53 +0100)
commitb5caaa73b7b526f8fe8692ded0b31b1cbbc6c4d4
treeb0ba352d5d327229d383ae8cebb39a125ac44122
parenta8471b2c660d1e2a97a9968833987e7180207bfd
Fixed content parsing break with line html comment

Fixes issues thrown in custom HMTL head & page content filtering when
the content is comprised of only a single HTML comment.
Adds tests to cover.

For #2804
app/Entities/Tools/PageContent.php
app/Util/HtmlContentFilter.php
tests/Entity/ExportTest.php
tests/Entity/PageContentTest.php