Skip to content

Commit

Permalink
Merge pull request getredash#253 from washort/entity-escape-222
Browse files Browse the repository at this point in the history
convert angle brackets in strings to html entities (re getredash#222)
  • Loading branch information
alison985 authored Sep 11, 2017
2 parents 3753fd2 + c072990 commit 9c6eb4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/app/visualizations/table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ function formatValue($filter, clientConfig, value, type) {
break;
default:
if (isString(value)) {
formattedValue = $filter('linkify')(value);
formattedValue = $filter('linkify')(value.replace(
/[\u00A0-\u9999<>&'"]/gim, i => `&#${i.charCodeAt(0)};`));
}
break;
}
Expand Down

0 comments on commit 9c6eb4b

Please sign in to comment.