mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Clean up Anilist descriptions
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "112.14.0",
|
||||
"version": "112.14.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
+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