mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
I use base64 a lot
This commit is contained in:
@@ -51,6 +51,10 @@ class Util {
|
||||
return arr;
|
||||
}
|
||||
|
||||
static base64(text) {
|
||||
return Buffer.from(text).toString('base64');
|
||||
}
|
||||
|
||||
static cleanXML(text) {
|
||||
return text
|
||||
.replace(/<br \/>/g, '')
|
||||
|
||||
Reference in New Issue
Block a user