1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Added test to check page HTML id de-duplication

Relates to #1393
This commit is contained in:
Dan Brown
2019-04-20 13:01:22 +01:00
parent c653618eab
commit 6c66a8935a
2 changed files with 18 additions and 0 deletions

View File

@ -139,6 +139,7 @@ class PageRepo extends EntityRepo
if ($htmlText == '') {
return $htmlText;
}
libxml_use_internal_errors(true);
$doc = new DOMDocument();
$doc->loadHTML(mb_convert_encoding($htmlText, 'HTML-ENTITIES', 'UTF-8'));