Fix HTML rules