Skip to content

Commit

Permalink
Accidentally removed HTML-cleaning from error display
Browse files Browse the repository at this point in the history
Linked #1034
  • Loading branch information
Safihre committed Sep 19, 2017
1 parent 248f2da commit 11bd16a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ function ViewModel() {
var warningData = {
index: index,
type: glitterTranslate.status[warning.type].slice(0, -1),
text: warning.text.replace(/ /g, '\u00A0').replace(/(?:\r\n|\r|\n)/g, '<br />'),
text: convertHTMLtoText(warning.text).replace(/ /g, '\u00A0').replace(/(?:\r\n|\r|\n)/g, '<br />'),
timestamp: warning.time,
css: (warning.type == "ERROR" ? "danger" : warning.type == "WARNING" ? "warning" : "info"),
clear: self.clearWarnings
Expand Down

0 comments on commit 11bd16a

Please sign in to comment.