diff --git a/src/Psalm/ErrorBaseline.php b/src/Psalm/ErrorBaseline.php index 9a83b0a28..783ef4a8c 100644 --- a/src/Psalm/ErrorBaseline.php +++ b/src/Psalm/ErrorBaseline.php @@ -16,7 +16,6 @@ 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; @@ -268,11 +267,7 @@ final class ErrorBaseline foreach ($existingIssueType['s'] as $selection) { $codeNode = $baselineDoc->createElement('code'); $textContent = trim($selection); - if ($textContent !== htmlspecialchars($textContent)) { - $codeNode->appendChild($baselineDoc->createCDATASection($textContent)); - } else { - $codeNode->textContent = trim($textContent); - } + $codeNode->appendChild($baselineDoc->createCDATASection($textContent)); $issueNode->appendChild($codeNode); } $fileNode->appendChild($issueNode);