我想在Spring JSP中浏览html chars。
<c:out value="${fn:***unescapeHtml***(item.name)}" />
是否有unescapeHtml或同等版本?
答案 0 :(得分:0)
由于我没有找到jsp标签来做同样的事情,我不得不求助于javascript方法。这对我来说很有意义,因为我在第一时间使用javascript来逃避它,并且它运行正常。
我把它放到页面的$ .ready()中。
$.find(xxxx) {
$(this).text((unescape($(this).text())));
}