reformats <pre> section to exclude html, head, body, etc