Skip to content

Commit

Permalink
Merge pull request #1432 from lucasnetau/json-show-data
Browse files Browse the repository at this point in the history
Escape formData in showData dialog for all dataTypes
  • Loading branch information
kevinchappell authored Oct 5, 2023
2 parents 3c511b4 + c6f89d1 commit 32eb558
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/js/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -985,11 +985,7 @@ export default class Helpers {
* Open a dialog with the form's data
*/
showData() {
let formData = this.getFormData(config.opts.dataType, true)

if (config.opts.dataType === 'xml') {
formData = escapeHtml(formData)
}
const formData = escapeHtml(this.getFormData(config.opts.dataType, true))

const code = m('code', formData, {
className: `formData-${config.opts.dataType}`,
Expand Down

0 comments on commit 32eb558

Please sign in to comment.