diff --git a/uni_modules/mp-html/components/mp-html/parser.js b/uni_modules/mp-html/components/mp-html/parser.js index 574f6b7..c0c9fa2 100644 --- a/uni_modules/mp-html/components/mp-html/parser.js +++ b/uni_modules/mp-html/components/mp-html/parser.js @@ -122,7 +122,7 @@ function makeMap (str) { * @param {Boolean} amp 要不要解码 & * @returns {String} 解码后的字符串 */ -function decodeEntity (str, amp) { +function decodeEntity (str, amp = true) { let i = str.indexOf('&') while (i !== -1) { const j = str.indexOf(';', i + 3)