mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Replace HTML tags in lyrics
This commit is contained in:
@@ -55,6 +55,8 @@ module.exports = class LyricsCommand extends Command {
|
||||
return lyrics
|
||||
.replaceAll('<br>', '')
|
||||
.replace(/<\/?div>/g, '')
|
||||
.replace(/<\/?i>/g, '*')
|
||||
.replace(/<\/?b>/g, '**')
|
||||
.trim();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user