版权声明: https://blog.csdn.net/qq_37185081/article/details/80243346
保存时,使用StringEscapeUtils.unescapeHtml4()转译,不然获取到前台是html代码。
例子:
public void save(Article article) { if (article.getArticleData().getContent()!=null){ article.getArticleData().setContent(StringEscapeUtils.unescapeHtml4( article.getArticleData().getContent()));
}
}
页面:
<form:textarea id="content" htmlEscape="true" path="content" rows="4" maxlength="200" class="input-xxlarge"/> <sys:ckeditor replace="content" uploadPath="/search/caseLaw" />
文档上是tags,改为sys