tidy html for chartbuilder