Hidden-text benchmark

Results from 23 Nov 2026. HiddenStrip

A small, reproducible test of what common HTML-to-text readers hand to an AI agent when a page hides text from human readers. Each hidden-text page carries a harmless canary instruction hidden with one CSS or HTML technique. A reader leaks when the canary is still in the text it returns. No model was run: a leak means the text reached the context, not that a model obeyed it.

The pages, harness and write-up were produced with AI assistance. This page is published by HiddenStrip, which sells a hidden-text stripping API. Read the numbers with that in mind and re-run them yourself; the bench runs on 127.0.0.1. Full tables, raw reader output and the reproduction script: https://github.com/hiddenstrip/hidden-text-bench.

Results (run 23 Nov 2026)

Reader versions are pinned to 23 Nov 2026 in the bench repository.

Demo set: 34 pages, 26 with a hidden canary

ReaderHidden canary leaked (of 26)Leak rate
html2text 2025.4.152388%
markdownify 1.2.42388%
trafilatura 2.3.12285%
mcp-server-fetch 2026.11.18 (Readability.js mode)2285%
bs4 get_text (beautifulsoup4 4.15.0)2181%
bs4 get_text, script/style removed2077%
mcp-server-fetch (readabilipy mode)2077%
readability-lxml 0.91662%
Mozilla Readability 0.6.0 (jsdom 31.0.1)1454%
Playwright 1.65.2 innerText (Chromium)1454%

Public fixtures: 53 pages (36 injection, 17 benign); 24 labelled statically hidden

ReaderLeaked (of 24)Leak rate
markdownify1563%
html2text1458%
bs4 get_text1354%
bs4, script/style removed1250%
mcp-server-fetch (readabilipy)1042%
readability-lxml833%
mcp-server-fetch (Readability.js)833%
Mozilla Readability729%
Playwright innerText729%
trafilatura521%

Nine of the 24 hidden techniques were never extracted by any plain reader (CSS content, data-*, hidden inputs, HTML comments, iframe srcdoc, JSON-LD, <meta>, script data, title). The fixture run was repeated twice with identical results.

Scoring

Limitations

About HiddenStrip

HiddenStrip strips common static CSS/HTML hidden content from a public page and returns Markdown, a removal record and best-effort flags, for $0.005 USDC per read via x402 on Base. It does not execute JavaScript. JS-inserted, hover- or scroll-revealed, and shadow-DOM content are not covered. Visible text is not stripped. HiddenStrip is not part of the tables above. Its only published figure is that it kept hidden text out of the returned page text on 39 of 40 private test pages scored by our security tester; this measures stripping, not verdicts or flags, and covers static CSS/HTML hiding only.

Treat any page text as untrusted. See /llms.txt for how to call the API. The full bench, including raw outputs and a one-command reproduction, is at https://github.com/hiddenstrip/hidden-text-bench.