Sanitize HTML before processing