HTML Preview
HTML preview is useful for reviewing generated reports, email-like content, and rich artifacts.Good Use Cases
- Generated investment memo drafts
- Email-format market recaps
- Multi-section report prototypes
Workflow Pattern
- Generate or retrieve HTML content
- Validate structure and encoding
- Render in preview container
- Export or revise
Safety Notes
- Treat remote HTML as untrusted content
- Avoid unbounded script execution contexts
- Prefer sanitized and deterministic render paths
Troubleshooting
- Blank preview: verify valid HTML root structure
- Missing styles: ensure CSS is embedded or linked correctly
- Encoding issues: force UTF-8 normalization