Skip to content

Commit ea74425

Browse files
authored
Merge pull request #44 from araise-dev/fix/186-vuln-stored-xss2
fix(formatter): escape HTML output in default formatter
2 parents 6afaf19 + dd09f59 commit ea74425

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Formatter/AbstractFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct()
2222

2323
public function getHtml(mixed $value): string
2424
{
25-
return $this->getString($value);
25+
return $this->escapeHTML($this->getString($value));
2626
}
2727

2828
/**

0 commit comments

Comments
 (0)