Browse Source

APP项目详情遗漏换行修复

anderx 8 years ago
parent
commit
2c137d5eb5

+ 2 - 0
src/main/java/com/goafanti/portal/controller/PortalNewsController.java

@@ -159,6 +159,8 @@ public class PortalNewsController extends BaseController {
 	public ModelAndView appCognizance(HttpServletRequest request, ModelAndView modelview,String id) {
 		ProjectDetailBo bo = businessProjectService.orgProject(id);
 		bo.setIntroduce(bo.getIntroduce().replace("\n", "</br>"));
+		bo.setValueEffect(bo.getValueEffect().replace("\n", "</br>"));
+		bo.setClientSize(bo.getClientSize().replace("\n", "</br>"));
 		modelview.addObject("bo", bo);
 		modelview.setViewName("/portal/news/appCognizance");
 		return modelview;

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/news/appCognizance.html

@@ -28,7 +28,7 @@
 					<h3><img th:src="${portalHost + '/img/appCognizance02.jpg'}" alt="" /><span>项目价值</span></h3>
 					<hr>
 					<div class="promiseText" id="data">
-						<p th:text="${bo.valueEffect}">
+						<p th:utext="${bo.valueEffect}">
 					</div>
 				</div>
 				<div class="service servicebj">