You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
cention-sany
changed the title
An option to ignore turning into plain text
An option to customize plain text conversion
Oct 18, 2019
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.
The text was updated successfully, but these errors were encountered: