Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An option to customize plain text conversion #37

Open
cention-sany opened this issue Oct 18, 2019 · 0 comments
Open

An option to customize plain text conversion #37

cention-sany opened this issue Oct 18, 2019 · 0 comments

Comments

@cention-sany
Copy link

Any chance to get an option which probably take an interface func Custom(*html.Node) string then html2text will convert the node to text base on the func return? My use case is I need to inject a predefined HTML pattern into email for my application later on to pick up the same HTML pattern. But the pattern will not be supported in plain text though. For HTML email content, hiding HTML can use display none or font-size 0px, but it still being pick up by html2text though.

Thank you for the library.

@cention-sany cention-sany changed the title An option to ignore turning into plain text An option to customize plain text conversion Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant