How To Send Html Text To Model In Spring Mvc
I have webmvc application with jsp-page as a view. Here one of my mapping methods: @RequestMapping('vacancy/{id}') public String showVacancy(@PathVariable String id, Model model) {
Solution 1:
You pass html the same way you pass text. You just need the jtsl code to not escape the html by using the escapeXml="false" directive.
For example:
<c:out value="${fn:replace(row.entryText, newLineChar, '<br>')}" escapeXml="false" />
Post a Comment for "How To Send Html Text To Model In Spring Mvc"