- Updated the `sanitizeHTML` function to include additional sanitization options for better security. - Introduced a URL regex to validate links and added a hook to manage `rel` attributes for external links. - Ensured that only safe attributes and tags are retained, further preventing XSS vulnerabilities.