mirror of https://github.com/layui/layui
更新 code 尾部空白符
parent
5bf9cdc72b
commit
706323fdfb
|
@ -306,7 +306,6 @@ layui.define(['lay', 'util', 'element', 'form'], function(exports){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 转义 HTML 标签
|
// 转义 HTML 标签
|
||||||
if(options.encode) html = util.escape(html); // 编码
|
if(options.encode) html = util.escape(html); // 编码
|
||||||
html = html.replace(/[\r\t\n]+/g, '</li><li>'); // 转义换行符
|
html = html.replace(/[\r\t\n]+/g, '</li><li>'); // 转义换行符
|
||||||
|
|
Loading…
Reference in New Issue