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