mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 00:04:48 +02:00
Clean up Anilist descriptions
This commit is contained in:
+2
-1
@@ -138,7 +138,8 @@ module.exports = class Util {
|
||||
|
||||
static cleanAnilistHTML(html) {
|
||||
let clean = html
|
||||
.replace(/(<br>)+/g, '\n')
|
||||
.replace(/\n/g, '')
|
||||
.replace(/<br>/g, '\n')
|
||||
.replace(/'/g, '\'')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/<\/?i>/g, '*')
|
||||
|
||||
Reference in New Issue
Block a user