import { decodeEntities, stripTags } from "./util/text"; export interface PacktClip { number: number; title: string; video: string; } export interface PacktSection { number: number; title: string; clips: PacktClip[] } export interface PacktIndex { title: string; sections: PacktSection[]; warnings: string[] } /** * Parses the Packt player's index.html structurally: * - the section overview: `

Section N: …

` followed by a `