<!--JSTL中替换\r\n-->
<c:set var="projectDetails" value="${message}"></c:set>
<%
request.setAttribute("vEnter", "\\r\\n");//用\转义
%>
${fn:replace(projectDetails,vEnter,"<br>")}
<!--JSTL中替换\r\n-->
<c:set var="projectDetails" value="${message}"></c:set>
<%
request.setAttribute("vEnter", "\\r\\n");//用\转义
%>
${fn:replace(projectDetails,vEnter,"<br>")}
|