Strip out extra header/footer