From ab40071cead588c4973221221db69831e69b1594 Mon Sep 17 00:00:00 2001 From: leemove Date: Fri, 24 Aug 2018 15:06:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=AD=8C=E8=AF=8D=E7=AC=A6=E5=8F=B7=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=20(#163)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index f32f08a..b28affd 100644 --- a/js/app.js +++ b/js/app.js @@ -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(/</g, "<") + .replace(/>/g, ">") + .replace(/&/g, "&") + .replace(/"/g, '"') + .replace(/'/g, "'"); var min = parseInt(timeRegResult[1]); var sec = parseInt(timeRegResult[2]); var microsec = 0;