mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
Remove useless function
This commit is contained in:
@@ -56,22 +56,6 @@ class Util {
|
||||
format: () => `${hrs < 10 ? `0${hrs}` : hrs}:${min < 10 ? `0${min}` : min}:${sec < 10 ? `0${sec}` : sec}`
|
||||
};
|
||||
}
|
||||
|
||||
static cleanHTML(text) {
|
||||
return text
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/–/g, '–')
|
||||
.replace(/—/g, '—')
|
||||
.replace(/©/g, '©')
|
||||
.replace(/™/g, '™')
|
||||
.replace(/®/g, '®')
|
||||
.replace(/(<\/?strong>|<\/?b>)/g, '**')
|
||||
.replace(/<br>/g, '\n')
|
||||
.replace(/(<\/?i>|<\/?em>)/g, '*');
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Util;
|
||||
|
||||
Reference in New Issue
Block a user