Clean up HTML snippets output