I have something like
model.addAttribute("msg", "<b>akhil</b>");
return "index";
in my Controller.
In my view page I wrote
<body>
<h2>Hello World!</h2>
<c:out value="${msg}" />
</body>
But the output is <b>akhil</b> as against <b>akhil</b>. Why is it so and what should be done to get <b>akhil</b>.
This is because
<c:out>uses XML escaping for the characters'<'and>.Set the option
escapeXml=falseofc:outto output your text in bold letters: