Skip to content

All tests / Messy content

Invisible characters

What this tests. Names and prices full of zero-width characters, soft hyphens and non-breaking spaces, with a hidden decoy digit inside each price.

The rule. These twenty names and prices look normal. Inside them are zero-width spaces, zero-width joiners, soft hyphens and no-break spaces, and every price holds one extra digit in a span that CSS hides. Strip the invisible characters, read a no-break space as a space, and skip anything with display: none. Take textContent as it comes and the prices are all wrong.

Data version 1.0.0. Everything here is made up: products, brands, people, towns. tests.json · robots.txt · Source