Skip to content

An option to customize plain text conversionΒ #37

@cention-sany

Description

@cention-sany

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions