{"repo":"jaytaylor/html2text","free":true,"listed":false,"github":"https://github.com/jaytaylor/html2text","clone":"git clone https://github.com/jaytaylor/html2text.git","description":"Golang HTML to plaintext conversion library","language":"Go","stars":587,"topics":["go","golang","html2text","html-emails","plaintext"],"license":"MIT","category":"dev-tools","readme_excerpt":"html2text Converts HTML into text of the markdown-flavored variety Introduction Ensure your emails are readable by all! Turns HTML into raw text, useful for sending fancy HTML emails with an equivalently nicely formatted TXT document as a fallback (e.g. for people who don't allow HTML emails or have other display issues). html2text is a simple golang package for rendering HTML into plaintext. There are still lots of improvements to be had, but FWIW this has worked fine for my [basic] HTML-2-text needs. It requires go 1.x or newer ;) Download the package Example usage Library Output: Command line Unit-tests Running the unit-tests is straightforward and standard: License Permissive MIT license. Contact You are more than welcome to open issues and send pull requests if you find a bug or want a new feature. If you appreciate this library please feel free to drop me a line and tell me! It's always nice to hear from people who have benefitted from my work. Email: jay at (my github username).com Twitter: @jtaylor Alternatives https://github.com/k3a/html2text - Lightweight","default_branch":null,"files":null,"tree":[],"storefront":"/r/jaytaylor","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jaytaylor/html2text/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}