/** * Paste normalizer — cleans HTML from Word, Google Docs, and arbitrary web pages * into RayEditor-compatible markup before insertion. * * Pipeline (in order): * 1. DOMParser sandbox — scripts never run * 2. Strip dangerous tags * 3. Remove Word/MSO namespace elements (o:p, w:*, v:*, xml) * 4. Unwrap Google Docs outer wrapper * 5. Normalize tags (b→strong, i→em, strike→s, font→span) * 6. Filter attributes — strip class/id, keep only safe inline style props * 7. Semantic promotion — span[style] → strong/em/u/s/mark * 8. Unwrap empty/no-attr spans * 9. Returns clean HTML string (structure like pre→code-block handled by ContentManager) */ /** * Normalizes pasted or externally-sourced HTML. * Returns a clean HTML string ready for insertion into the editor. * RayEditor-specific structure (code blocks, table wrappers, task lists) is * applied separately by ContentManager.applyStructure(). */ export declare function normalizePastedHTML(html: string): string; //# sourceMappingURL=paste-normalizer.d.ts.map