Clean up closing tags and HTTPS links