Fix anime-character command HTML

This commit is contained in:
Dragon Fire
2020-06-05 00:19:58 -04:00
parent 672dc6641b
commit 1caa7352eb
4 changed files with 11 additions and 10 deletions
+4 -3
View File
@@ -175,9 +175,10 @@ module.exports = class Util {
return false;
}
static cleanAnilistHTML(html) {
let clean = html
.replace(/\r|\n|\f/g, '')
static cleanAnilistHTML(html, removeLineBreaks = true) {
let clean = html;
if (removeLineBreaks) clean = clean.replace(/\r|\n|\f/g, '');
clean = clean
.replace(/<br>/g, '\n')
.replace(/&#039;/g, '\'')
.replace(/&quot;/g, '"')