I use base64 a lot

This commit is contained in:
Daniel Odendahl Jr
2018-03-05 04:01:20 +00:00
parent f61fd93683
commit 511154ef23
6 changed files with 15 additions and 9 deletions
+4
View File
@@ -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, '')