mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix anime-character command HTML
This commit is contained in:
+4
-3
@@ -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(/'/g, '\'')
|
||||
.replace(/"/g, '"')
|
||||
|
||||
Reference in New Issue
Block a user