import type { CV } from '../schema/cvSchema'; import { sanitizeHtml } from '../schema/cvSchema'; import { buildPrintableHtml as sharedBuild } from '../../../shared-printable/buildPrintableHtml.js'; // Thin wrapper to ensure client-side sanitization and shared rendering parity export const buildPrintableHtml = (cv: CV, templateId?: string): string => { const cleaned: CV = { ...cv, summary: cv.summary ? sanitizeHtml(cv.summary) : '' }; return sharedBuild(cleaned, templateId); };