diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 5f20eb116..41f0528d5 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -143,7 +143,9 @@ function normalizeTrackEventText(text, useHtml) { const result = text .replace(/\\N/gi, '\n') // Correct newline characters .replace(/\r/gi, '') // Remove carriage return characters - .replace(/{\\.*?}/gi, ''); // Remove ass/ssa tags + .replace(/{\\.*?}/gi, '') // Remove ass/ssa tags + // Force LTR as the default direction + .split('\n').map(val => `\u200E${val}`).join('\n'); return useHtml ? result.replace(/\n/gi, '
') : result; }