/** * Preview Toolbar * * A floating pill injected by the preview middleware into HTML responses. * Shows preview status, snapshot age, reload button, and errors. * No dependencies — plain HTML string with inline styles and a `; } function escapeAttr(str: string): string { return str .replace(RE_AMP, "&") .replace(RE_QUOT, """) .replace(RE_LT, "<") .replace(RE_GT, ">"); }