explanation
This commit is contained in:
parent
43ea7fb70c
commit
1b4d06c8d2
1 changed files with 3 additions and 0 deletions
|
@ -273,6 +273,9 @@ class TextFormattingEvent extends Event
|
|||
public function __construct(string $text)
|
||||
{
|
||||
parent::__construct();
|
||||
// We need to escape before formatting, instead of at display time,
|
||||
// because formatters will add their own HTML tags into the mix and
|
||||
// we don't want to escape those.
|
||||
$h_text = html_escape(trim($text));
|
||||
$this->original = $h_text;
|
||||
$this->formatted = $h_text;
|
||||
|
|
Reference in a new issue