Skip to content

Commit

Permalink
Merge pull request #174 from xepozz/patch-1
Browse files Browse the repository at this point in the history
Correct html encode
  • Loading branch information
kartik-v committed Aug 9, 2018
2 parents e07d786 + bcf33ad commit 84f6584
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@
$.each(data, function (key, value) {
data[key] = self.htmlEncode(value);
});
return data;
}
return data.replace(/&/g, '&')
.replace(/</g, '&lt;')
Expand Down

0 comments on commit 84f6584

Please sign in to comment.