From 9845ed060257624c5716304ccd5030ceb5ada5be Mon Sep 17 00:00:00 2001 From: gchi25 Date: Wed, 18 Sep 2024 14:14:21 -0400 Subject: [PATCH] PXBF-1817-display-raw-html: display raw html --- .../src/Controller/LifeEventController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php b/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php index 9d1512661..637c03c84 100644 --- a/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php +++ b/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php @@ -320,6 +320,7 @@ public function getData($id) { "benefits" => $benefits, ]; $json = json_encode($result, JSON_PRETTY_PRINT); + $json = htmlspecialchars($json); if ($this->displayData) { print_r("

JSON Data

");