Skip to content

Commit

Permalink
Fix #1363: parsing error contains html caharacters
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Aug 25, 2021
1 parent f87fb79 commit 5dbdfe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/ErrorTable.js
Expand Up @@ -129,7 +129,7 @@ export class ErrorTable {

const td4 = document.createElement('td')
const pre = document.createElement('pre')
pre.appendChild(document.createTextNode(error.message))
pre.appendChild(document.createTextNode(error.message.replace(/<br>/gi, '\n')))
td4.appendChild(pre)
trEl.appendChild(td4)
}
Expand Down
2 changes: 1 addition & 1 deletion src/scss/jsoneditor/_editor.scss
Expand Up @@ -515,7 +515,7 @@ pre.jsoneditor-preview,
vertical-align: middle;
pre {
margin: 0;
white-space: normal;
white-space: pre-wrap;
}
}
tr {
Expand Down

0 comments on commit 5dbdfe4

Please sign in to comment.