// Keep the vendor's lenient aliases while making complete named references exact. export const cueEntities = { '&': '&', '&': '&', '<': '<', '<': '<', '>': '>', '>': '>', '&lrm': '\u200E', '‎': '\u200E', '&rlm': '\u200F', '‏': '\u200F', ' ': '\u00A0', ' ': '\u00A0', } // Serialization protects the whole VTT once; this protects cue text after onVttLoad unescape. export function escapeCueText(value: string): string { return value.replace(/&/g, '&').replace(//g, '>') }