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;