Skip to content

Commit

Permalink
PXBF-1817-display-raw-html: display raw html
Browse files Browse the repository at this point in the history
  • Loading branch information
gchi25 committed Sep 18, 2024
1 parent 644eb75 commit 9845ed0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("<p>JSON Data<pre>");
Expand Down

0 comments on commit 9845ed0

Please sign in to comment.