mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-23 20:44:42 +08:00
修复导出时存在 html 标签的 bug
This commit is contained in:
@@ -418,6 +418,10 @@ window.htmlEncode = (value) => {
|
||||
return String(value).replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<").replace(/"/g, """)
|
||||
}
|
||||
|
||||
window.removeHtmlTags = value => {
|
||||
return quickcommand.htmlParse(value).querySelector('body').innerText
|
||||
}
|
||||
|
||||
window.hexEncode = text => Buffer.from(text, 'utf8').toString('hex')
|
||||
window.hexDecode = text => Buffer.from(text, 'hex').toString('utf8')
|
||||
window.base64Decode = text => Buffer.from(text, 'base64').toString('utf8')
|
||||
|
Reference in New Issue
Block a user