怎麼處理都是在前臺帶標籤的,後來在數據庫中看數據是這樣的:
<p>服務</p>
展示到頁面也時把這個字段傳過去的值變成了字符串,這個可以我最後就是直接在後臺將這個字段的內容進行了替換
private String goodsReplace(String temp){
temp = temp.replaceAll("<p", "<p");
temp = temp.replaceAll("</p", "</p");
temp = temp.replaceAll("<br", "<br");
temp = temp.replaceAll("<ol", "<ol");
temp = temp.replaceAll("</li", "</li");
temp = temp.replaceAll("<li", "<li");
temp = temp.replaceAll("</ol", "</ol");
temp = temp.replaceAll(">", ">");
return temp;
}