author | Mikael Berthe <mikael@lilotux.net> |
Thu, 22 Sep 2022 16:32:45 +0200 | |
changeset 261 | 270cc4dda0c5 |
parent 126 | 7d712d2bde73 |
permissions | -rw-r--r-- |
126
7d712d2bde73
Much improved html2text (fromhtml)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
1 |
# html2text |
7d712d2bde73
Much improved html2text (fromhtml)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
2 |
|
7d712d2bde73
Much improved html2text (fromhtml)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
3 |
This is a copy of github.com/sgoertzen/html2text, heavily customized for |
7d712d2bde73
Much improved html2text (fromhtml)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
4 |
Mastodon's HTML messages. |
7d712d2bde73
Much improved html2text (fromhtml)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
5 |
|
7d712d2bde73
Much improved html2text (fromhtml)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
6 |
html2text is an HTML to text converter written in Go. |
7d712d2bde73
Much improved html2text (fromhtml)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
7 |
This library will strip the html tags from the source and perform clean up on the text. |
7d712d2bde73
Much improved html2text (fromhtml)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
8 |
This includes things like adding new lines correctly and appending on urls from links. |
7d712d2bde73
Much improved html2text (fromhtml)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
9 |
|
7d712d2bde73
Much improved html2text (fromhtml)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
10 |
For Mastodon tags, URLs are not displayed. |