darkrockmountain / gomail

GoMail is a powerful library for sending emails via multiple providers, including SMTP, Gmail API, Microsoft Graph API, SendGrid, AWS SES, Mailgun, Mandrill, Postmark, and SparkPost. Supporting attachments, plain text, and HTML content, it simplifies email integration for developers with easy setup and robust functionalities.
https://darkrockmountain.com
Apache License 2.0
4 stars 1 forks source link

feat(sanitizer): Add SanitizerFunc and update documentation #36

Closed JRocabruna closed 3 weeks ago

JRocabruna commented 3 weeks ago

Description

This PR introduces the SanitizerFunc type to allow the use of ordinary functions as sanitizers and updates the package documentation to demonstrate its usage. The example now includes inline implementations of custom sanitizers for both text and HTML content, with comments indicating where custom sanitizer logic should be implemented.

Checklist

Please ensure the following guidelines are met:

Additional Information

This documentation update improves the clarity and usability of the sanitizer package by providing a practical example of custom sanitization using SanitizerFunc.