diff --git a/lib/page.js b/lib/page.js index ccc05ede..9774383e 100644 --- a/lib/page.js +++ b/lib/page.js @@ -275,6 +275,8 @@ Volcanos("page", {help: "网页模块", if (text.startsWith("http")) {return ""+text+""} text = text.replace(/\033\[31m/g, "") text = text.replace(/\033\[32m/g, "") + text = text.replace(/\033\[36m/g, "") + text = text.replace(/\033\[1m/g, "") text = text.replace(/\033\[0m/g, "") text = text.replace(/\033\[m/g, "") text = text.replace(/\\n/g, "
") diff --git a/plugin/table.js b/plugin/table.js index ba5749fd..bba515f8 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -1,7 +1,7 @@ Volcanos("onimport", {help: "导入数据", list: [], init: function(can, msg, cb, output, action, option) {output.innerHTML = ""; if (!msg.append || msg.append.length == 0) { - var code = can.page.Append(can, output, [{view: ["code", "div", msg.Result()]}]).code; + var code = can.page.Append(can, output, [{view: ["code", "div", can.page.Display(msg.Result())]}]).code; return typeof cb == "function" && cb(msg), code; }