Skip to content

Commit

Permalink
Merge pull request #13 from tms/column-encoding
Browse files Browse the repository at this point in the history
Don't try to avoid escaping entities, causes more problems than it solves
  • Loading branch information
NickCraver committed Aug 30, 2013
2 parents 32c4b31 + bfbd23d commit 70a7d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/StackExchange.DataExplorer/Scripts/query.js
Expand Up @@ -1074,7 +1074,7 @@ DataExplorer.ready(function () {
function encodeColumn(s) {
if (s != null && s.replace != null) {
s = s.replace(/[\n\r]/g, " ")
.replace(/&(?!\w+([;\s]|$))/g, "&")
.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.substring(0, 400);
Expand Down

0 comments on commit 70a7d14

Please sign in to comment.