Simplify html rule