Remove duplicate HTML
flatter ruby