How to code an HTML into a control that renders HTML?
My html:
<textarea name="exHtml" id=exHtml" rows="10" cols="80" th:text="${exHtmlFile}"></textarea>
My controller:
public static final String EXAMPLE_HTML = “exHtmlFile”;
…
@GetMapping(value = “/ex/{code}/{version}”)
public String exDraft(@PathVariable(“code”) final Long code, @PathVariable(“version”) final Long version, final Model model) {
String viewExHtml = exService.viewEx(code, version);
model.addAttribute(ModelAttributes.EXAMPLE_HTML, viewExHtml);
return Views.VIEW_EXAMPLE;
}
I’ve got an HTML layout:
But I would like an word layout.