Make Steam Command Better

This commit is contained in:
dragonfire535
2017-10-07 12:26:21 -04:00
parent c1a9f83c27
commit 58a5f13ffc
3 changed files with 41 additions and 9 deletions
+13
View File
@@ -56,6 +56,19 @@ class Util {
format: () => `${hrs < 10 ? `0${hrs}` : hrs}:${min < 10 ? `0${min}` : min}:${sec < 10 ? `0${sec}` : sec}`
};
}
static cleanHTML(text) {
return text
.replace(/&amp;/g, '&')
.replace(/&lt;/g, '<')
.replace(/&gt;/g, '>')
.replace(/&quot;/g, '"')
.replace(/&ndash;/g, '')
.replace(/&mdash;/g, '—')
.replace(/&copy;/g, '©')
.replace(/&trade;/g, '™')
.replace(/&reg;/g, '®');
}
}
module.exports = Util;