UNPKG

zoomla

Version:

16年专业研发|中文alexa排名第一的CMS品牌-基于dotNET core、功能强大,集成站群、微信开发、小程序与ERP及OA办公系统,支持国际语言和多民族语言,世界五百强与大型门户专用高端网站内核CMS系统

44 lines (43 loc) 2.12 kB
var jhtmls = "undefined" == typeof exports ? jhtmls || {} : exports; void function (e) { "use strict"; function n(e) { return String(e).replace(/["<>& ]/g, function (e) { return "&" + u[e] + ";" }) } function t(e) { var n = []; return n.push("with(this){"), n.push(e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g, function (e) { return ['!#{unescape("', escape(e), '")}'].join("") }).replace(/[\r\n]+/g, "\n").replace(/^\n+|\s+$/gm, "").replace(/^([ \w\t_$]*([^&\^?|\n\w\/'"{}\[\]+\-():; \t=\.$_]|:\/\/).*$|^(?!\s*(else|do|try|finally|void|typeof\s[\w$_]*)\s*$)[^'":;{}()\n|=&\/^?]+$)\s?/gm, function (e) { return e = e.replace(/&none;/g, "").replace(/["'\\]/g, "\\$&").replace(/\n/g, "\\n").replace(/(!?#)\{(.*?)\}|(!?\$)([a-z_]+\w*(?:\.[a-z_]+\w*)*)/g, function (e, n, t, r, u) { if (r && (n = r, t = u), !t) return ""; t = t.replace(/\\n/g, "\n").replace(/\\([\\'"])/g, "$1"); var o = /^[a-z$][\w+$]+$/i.test(t) && !/^(true|false|NaN|null|this)$/.test(t); return ["',", o ? ["typeof ", t, "==='undefined'?'':"].join("") : "", "#" === n || "$" === n ? "_encode_" : "", "(", t, "),'"].join("") }), e = ["'", e, "'"].join("").replace(/^'',|,''$/g, ""), e ? ["_output_.push(", e, ");"].join("") : "" })), n.push("}"), new Function("_output_", "_encode_", "helper", "jhtmls", n.join("")) } function r(r, u, o) { "function" == typeof r && (r = String(r).replace(/^[^\{]*\{\s*\/\*!?[ \f\t\v]*\n?|[ \f\t\v]*\*\/[;|\s]*\}$/g, "")); var i = t(r), c = function (t, r) { var u = []; return "undefined" == typeof r && (r = function (t) { i.call(t, u, n, r, e) }), i.call(t, u, n, r, e), u.join("") }; return arguments.length <= 1 ? c : c(u, o) } var u = { '"': "quot", "<": "lt", ">": "gt", "&": "amp", " ": "nbsp" }; e.render = r }(jhtmls); //# sourceMappingURL=jhtmls.min.js.map