Simplify html code