Improve HTML snippets