From 1ef9c91b64224751bd9fc8fac4f0f26e0b551cbc Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 30 Jul 2024 04:02:07 +0300 Subject: [PATCH] escape text before wrap --- src/Abstract/Model/Gtk/Pango/Markup.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Abstract/Model/Gtk/Pango/Markup.php b/src/Abstract/Model/Gtk/Pango/Markup.php index 5033e49d..c1936325 100644 --- a/src/Abstract/Model/Gtk/Pango/Markup.php +++ b/src/Abstract/Model/Gtk/Pango/Markup.php @@ -106,11 +106,11 @@ class Markup implements \Yggverse\Yoda\Interface\Model\Gtk\Pango\Markup int $width = self::WRAP_WIDTH ): string { - return htmlspecialchars( - self::_wrap( - $value, - $width - ) + return self::_wrap( + htmlspecialchars( + $value + ), + $width ); }