Skip to content

Commit

Permalink
Fix export escaping HTML characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Nov 15, 2024
1 parent bedae2a commit 1962a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Views/collectionExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="offset-2 col-8" style="position:relative;">
<label for="resource" class="form-label">JSON</label>
<div class="input-group">
<textarea rows="20" class="form-control" id="resource" name="resource"><?= json_encode($data, JSON_PRETTY_PRINT) ?></textarea>
<textarea rows="20" class="form-control" id="resource" name="resource"><?= html_entity_decode(json_encode($data, JSON_PRETTY_PRINT)) ?></textarea>
</div>
<div class="form-text form-help pull-right" style="position: absolute; right: 0;" data-attribute="resource" data-dictionary=""></div>
</div>
Expand Down

0 comments on commit 1962a36

Please sign in to comment.