Simplify html snippets.