# Inspect HTML source safely

> View HTML source as escaped text and a sandboxed preview for quick checks before publishing static files.

Canonical: https://staticx.site/html-viewer

## Preview without publishing

Inspect an HTML fragment or page in a sandboxed preview before it becomes part of a StaticX release.

## Compare source and output

View escaped source beside rendered output so layout and markup issues are easier to catch.

## Useful for agent review

Paste AI-generated snippets to confirm they render as expected before adding them to site files.

## How to use HTML Viewer

Inspect a fragment visually and as escaped source before moving it into the site file tree.

1. **Paste HTML** — Add a complete document or a focused fragment.
2. **View the preview** — StaticX returns escaped source and a sandboxed render for quick inspection.
3. **Move into files** — Copy only reviewed markup into your project and publish when ready.

## A preview is not a production deployment.

The HTML Viewer is for quick inspection. It helps catch obvious structure, text, and layout issues, but production behavior still depends on the full file tree, assets, CSS, and routes.

Use it as a review step before editing files, then preview the real StaticX page and publish a deployment version when the change is ready.

## Preview boundaries

- **Sandboxed preview** — The preview is isolated to reduce accidental interaction with the surrounding page.
- **Source stays visible** — Escaped source helps you inspect exactly what was submitted.
- **Best for small snippets** — Large projects should be uploaded as files so assets and routes can be tested together.

## FAQ

### Can the HTML Viewer replace browser testing?

No. It is a quick inspection tool. Test the actual StaticX page before publishing production changes.

### Does the viewer store my HTML?

The public utility returns a server-generated result for the request. Do not paste secrets or private code.

### Can I preview external assets?

External URLs may render if the browser can load them, but final behavior should be verified inside your real site files.

[View on staticx.site](https://staticx.site/html-viewer)
