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 49929b65ce3..9221fb7df99 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("