HTML viewer

Fetches a URL and safely renders its HTML after sanitizing it.

PDF, spreadsheet, document, and archive viewers with compare and highlight support.

lr-html-viewer

import '@aceshooting/lyra-ui/components/lr-html-viewer.js';

Optional dependency: dompurify

Read guide (English)

Related components

  • Include — Fetches an HTML fragment and transcludes it as sanitized light-DOM page content.
  • Notebook viewer — Read-only Jupyter notebook renderer composing markdown, code, and rich cell outputs.
  • Page rail — Virtualized vertical thumbnail rail for paging through a page-addressed document.
  • PDF viewer — Fetches and renders PDF pages with zoom, pagination, and a selectable text layer
  • PPTX viewer — Best-effort client-side viewer for PowerPoint PPTX presentations.
  • Spreadsheet viewer — Fetches and renders .xlsx and legacy .xls workbooks with sheet tabs and virtualized rows.