html2text

package
v2.3.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2018 License: MIT, MIT Imports: 4 Imported by: 0

README

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Textify

func Textify(body string) (string, error)

Textify turns an HTML body into a text string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL