htmltext

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package htmltext turns HTML into readable plain text, for the text part of emails.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(doc string) string

Convert returns the text of an HTML document: block elements are separated by blank lines, list items start with "- ", links show their URL in parentheses, and <head>, <style> and <script> are left out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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