This commit is contained in:
2025-01-24 15:13:29 +08:00
parent 93c4e4941e
commit 8030ede931
3 changed files with 20 additions and 14 deletions

View File

@@ -18,6 +18,11 @@ const capitalizeFirstLetter = function (text) {
});
};
export default {
decodeHtml(html) {
var txt = document.createElement('textarea');
txt.innerHTML = html;
return txt.value;
},
//去掉最外层自定义的span标签
extractContentWithoutOuterSpan(cell) {
var str = ''