Modified classes from the htmlcleaner.sourceforge.net/ project.