Skip to content

Commit 080de0e

Browse files
committed
Change htmlentities() to htmlspecialchars()
1 parent 293d9d9 commit 080de0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FontProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function textToVipsImage(
5656
ColorInterface $color = new Color(0, 0, 0),
5757
): VipsImage {
5858
return VipsImage::text(
59-
'<span ' . $this->pangoAttributes($font, $color) . '>' . htmlentities($text) . '</span>',
59+
'<span ' . $this->pangoAttributes($font, $color) . '>' . htmlspecialchars($text) . '</span>',
6060
[
6161
'fontfile' => $font->filename(),
6262
'font' => TrueTypeFont::fromPath($font->filename())->familyName() . ' ' . $font->size(),

0 commit comments

Comments
 (0)