htmltext

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package htmltext turns HTML into readable plain text, for the text part of emails written in HTML: paragraphs and line breaks are kept, lists get "- " or numbers, links are followed by their URL in parentheses, images by their alt text; scripts, styles and the head are dropped. It is forgiving rather than a full HTML parser: it reads tags, comments and entities, and doesn't fix broken markup.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(s string) string

Convert returns the text of the HTML document or fragment s.

Types

This section is empty.

Jump to

Keyboard shortcuts

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