Rewrite html structuring tags