diff --git a/src/main/webapp/static/global/scripts/common.js b/src/main/webapp/static/global/scripts/common.js index 205deaa78..3c0e70c5d 100644 --- a/src/main/webapp/static/global/scripts/common.js +++ b/src/main/webapp/static/global/scripts/common.js @@ -32,17 +32,12 @@ $(function(){ }else{ text=$(element).text().trim() } - //增加换行 - var count = Math.floor(text.length/52); - for(var i=1;i<=count;i++){ - text=text.substring(0,i*52-1)+"\n"+text.substring(i*52-1); - } //特殊字符转义 text=text.replace(/[<>&"]/g,function(c){return {'<':'<','>':'>','&':'&','"':'"'}[c];}); html+="
"; html+="
"; - html+="
"; + html+="
"; html+="
"; }