A small helper to atomize HTML documents into words or characters