1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
harveyshao 2022-11-13 14:52:44 +08:00
parent 241c4021ad
commit 4cb5d8b414
2 changed files with 3 additions and 1 deletions

View File

@ -243,3 +243,6 @@ Volcanos("date", { // @1900-2100区间内的公历转农历
'7f07e7f0e47f531b0723b0b6fb0721','7f0e26665b66a449801e9808297c35','665f67f0e37f1489801eb072297c35',
'7ec967f0e37f14998082b0787b06bd','7f07e7f0e47f531b0723b0b6fb0721','7f0e27f1487f531b0b0bb0b6fb0722'],
})
Volcanos("page", {
replace: function(can, text, key, value) { return can.base.replaceAll(text, "<", "&lt;", ">", "&gt;", key, value) },
})

View File

@ -188,7 +188,6 @@ Volcanos("page", {ClassList: {
} return input
},
replace: function(can, text, key, value) { return can.base.replaceAll(text, "<", "&lt;", ">", "&gt;", key, value) },
Format: function(type) { var args = arguments; switch (type) {
case html.A: return "<a href='"+args[1]+"' target='_blank'>"+(args[2]||args[1])+"</a>"
case html.IMG: return args[2]? "<img src='"+args[1]+"' height="+args[2]+">": "<img src='"+args[1]+"'>"