diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/NodesPage.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/NodesPage.java index cb92bafc7b0..4dfb9d9ccd0 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/NodesPage.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/NodesPage.java @@ -168,7 +168,7 @@ class NodesPage extends RmView { nodeTableData.append("
") .append(Times.format(info.getLastHealthUpdate())).append("\",\"") - .append(info.getHealthReport()).append("\",\"") + .append(StringEscapeUtils.escapeJava(info.getHealthReport())).append("\",\"") .append(String.valueOf(info.getNumContainers())).append("\",\"") .append(info.getAllocationTagsSummary()).append("\",\"") .append("