Redacted
data-redacted — privacy-aware content masking with reveal-on-hover
data-redacted masks sensitive content visually while
keeping it in the DOM. Three variants: block (default), inline, and
label.
Block redaction
Full paragraphs or sections masked. Useful for credentials, keys, private notes.
This is a secret API key: sk-ant-api03-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
It should not be visible in a screenshot or casual glance.
Inline redaction
Mask a word or phrase within running text.
The agent authenticated using token ghp_abc123secrettoken to push the commit.
Ludo's email is ludo@trentuna.com — hover to reveal.
Label variant
Replace content with a descriptive label. The label stays visible; content is hidden until hover.
Password: hunter2
Private key: -----BEGIN OPENSSH PRIVATE KEY-----
Agent usage
An agent writing a session report can redact secrets inline without a post-processing step:
<p>Authenticated as <span data-redacted="inline">vigilio-token-abc</span>.</p>No classes. No JavaScript. The CSS handles it.