rewrite html