1
0
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:
Jack Worman 2023-01-25 10:57:28 -05:00
parent 32581a71fd
commit 375cdeb636

View File

@ -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);