Skip to content

Commit 03f6a82

Browse files
author
Martin Brecht-Precht
committed
Fixed an escaping issue.
1 parent 4f1757c commit 03f6a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Handler/HtmlHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ public function onLinkContentEnd(string $uri, ?string $title = null): void
511511
public function onTextContent(string $text): void
512512
{
513513
if ($this->getEscapeHtml()) {
514-
$text = htmlentities($text);
514+
$text = htmlspecialchars((string)$text, ENT_COMPAT);
515515
}
516516
$this->htmlBuilder->append($text);
517517
}

0 commit comments

Comments
 (0)