Browse Source

[fix] [minor] [issue] #628 - In Code formatter, html content should be escaped

version-14
Anand Doshi 12 years ago
parent
commit
0b654c6d34
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      public/js/wn/form/formatters.js

+ 1
- 1
public/js/wn/form/formatters.js View File

@@ -76,7 +76,7 @@ wn.form.formatters = {
return wn.form.formatters.Text(value);
},
Code: function(value) {
return "<pre>" + (value==null ? "" : value) + "</pre>"
return "<pre>" + (value==null ? "" : $("<div>").text(value).html()) + "</pre>"
},
WorkflowState: function(value) {
workflow_state = wn.model.get("Workflow State", value)[0];


Loading…
Cancel
Save