Skip to content

Commit

Permalink
Fixing issue for PHPOffice#3145 unterminated entity reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Kopp committed Oct 27, 2022
1 parent c16d86d commit 0ece0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Reader/Xlsx.php
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ protected function loadSpreadsheetFromFile(string $filename): Spreadsheet
}
$node->addAttribute('sqref', $item->children(Namespaces::DATA_VALIDATIONS2)->sqref);
if (isset($item->formula1)) {
$node->addChild('formula1', $item->formula1->children(Namespaces::DATA_VALIDATIONS2)->f);
$node->addChild('formula1', htmlspecialchars($item->formula1->children(Namespaces::DATA_VALIDATIONS2)->f));
}
}
}
Expand Down

0 comments on commit 0ece0e1

Please sign in to comment.