mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
cdata in baseline
This commit is contained in:
parent
32581a71fd
commit
375cdeb636
@ -16,6 +16,7 @@ use function array_merge;
|
||||
use function array_reduce;
|
||||
use function array_values;
|
||||
use function get_loaded_extensions;
|
||||
use function htmlspecialchars;
|
||||
use function implode;
|
||||
use function ksort;
|
||||
use function min;
|
||||
@ -267,7 +268,7 @@ final class ErrorBaseline
|
||||
foreach ($existingIssueType['s'] as $selection) {
|
||||
$codeNode = $baselineDoc->createElement('code');
|
||||
$textContent = trim($selection);
|
||||
if ($textContent !== \htmlspecialchars($textContent)) {
|
||||
if ($textContent !== htmlspecialchars($textContent)) {
|
||||
$codeNode->append($baselineDoc->createCDATASection($textContent));
|
||||
} else {
|
||||
$codeNode->textContent = trim($textContent);
|
||||
|
Loading…
Reference in New Issue
Block a user