diff --git a/core/src/main/resources/org/apache/spark/ui/static/historypage.js b/core/src/main/resources/org/apache/spark/ui/static/historypage.js index d847efa2f7ff..853dfa708ef4 100644 --- a/core/src/main/resources/org/apache/spark/ui/static/historypage.js +++ b/core/src/main/resources/org/apache/spark/ui/static/historypage.js @@ -216,7 +216,11 @@ $(document).ready(function() { data: 'duration', render: (id, type, row) => `${row.duration}` }, - {name: 'user', data: 'sparkUser' }, + { + name: 'user', + data: 'sparkUser', + render: (name) => escapeHtml(name) + }, {name: 'lastUpdated', data: 'lastUpdated' }, { name: 'eventLog',