Under the hood
What gets cleaned
HTML tags and entities are removed by default. Extra spaces are collapsed and line edges are trimmed.
Invisible Unicode (zero-width spaces, bidi marks and similar) can be stripped while emoji sequences stay intact.
Smart quotes and long dashes become plain ASCII quotes and hyphens when that option is on.