printer/html2text/README.md
author Mikael Berthe <mikael@lilotux.net>
Fri, 12 May 2017 23:31:21 +0200
changeset 126 7d712d2bde73
permissions -rw-r--r--
Much improved html2text (fromhtml) Handles tags and mentions specifically; display the URL in the other cases.

# html2text

This is a copy of github.com/sgoertzen/html2text, heavily customized for
Mastodon's HTML messages.

html2text is an HTML to text converter written in Go.
This library will strip the html tags from the source and perform clean up on the text.
This includes things like adding new lines correctly and appending on urls from links.

For Mastodon tags, URLs are not displayed.