diff --git a/src/helpers/HtmlString.php b/src/helpers/HtmlString.php index 964711445f..50b453c846 100644 --- a/src/helpers/HtmlString.php +++ b/src/helpers/HtmlString.php @@ -26,7 +26,7 @@ public static function fromRaw(string $content): self { * Creates a new HtmlString from a plain text string. */ public static function fromPlainText(string $content): self { - return new self(htmlspecialchars($content)); + return new self(htmlspecialchars($content, ENT_NOQUOTES)); } /**