其他地方采集过来的可以转译下,试试这个:
var returnReg = /\n/g;
detail = detail.replace(returnReg,"");
var reg = />|>|>|>/g;
detail = detail.replace(reg,">");
reg = /&amp;amp;lt;|&amp;lt;|&lt;|</g;
detail = detail.replace(reg,"<");
时间: 2025-01-09 10:04:06