修复 部分歌词符号显示不正确 (#163)

This commit is contained in:
leemove 2018-08-24 15:06:04 +08:00 committed by Listen 1
parent ca181c15d1
commit ab40071cea

View File

@ -910,7 +910,12 @@
var timeReg = /\[(\d{2,})\:(\d{2})(?:\.(\d{1,3}))?\]/g;
while(timeRegResult = timeReg.exec(line)) {
var content = line.replace(/\[(\d{2,})\:(\d{2})(?:\.(\d{1,3}))?\]/g, '');
var content = line.replace(/\[(\d{2,})\:(\d{2})(?:\.(\d{1,3}))?\]/g, '')
.replace(/&lt;/g, "<")
.replace(/&gt;/g, ">")
.replace(/&amp;/g, "&")
.replace(/&quot;/g, '"')
.replace(/&apos;/g, "'");
var min = parseInt(timeRegResult[1]);
var sec = parseInt(timeRegResult[2]);
var microsec = 0;