Skip to content

Commit

Permalink
Merge pull request #304 from esmero/ISSUE-303
Browse files Browse the repository at this point in the history
ISSUE-303: Escape Tags on RAW JSON formatter
  • Loading branch information
alliomeria authored Feb 15, 2024
2 parents 3300fe6 + bbae877 commit b6f56be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function viewElements(FieldItemListInterface $items, $langcode) {
'json' => [
'#markup' => json_encode(
json_decode($item->value, TRUE),
JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE
JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE |JSON_HEX_TAG
),
'#prefix' => '<pre>',
'#suffix' => '</pre>',
Expand Down Expand Up @@ -118,4 +118,4 @@ protected function prepareUser(AccountInterface $account = NULL) {
}


}
}

0 comments on commit b6f56be

Please sign in to comment.