java去除编辑器换行符0x0a和0x0dbyte[] c = temp_result.getBytes(); for(int i=0;i<c.length;i++){ byte cc = c[i]; // System.out.println("0x0"+Integer.toHexString(cc)); if("0x0d".equals("0x0"+Integer.toHexString(cc)) || "0x0a".equals("0x0"+Integer.toHexString(cc)) ||...
tinyMCE里使用回车后会加P标签,增加forced_root_block这个属性,替换为空 后,换行就没有P标签了。 例子: js 代码 tinyMCE.init({ forced_root_block:'' });