plain

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package plain converts HTML to plain text and vice versa.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromHTML

func FromHTML(text string) (string, data.OrderedMap[string, string])

FromHTML converts HTML to plain text and extracts links.

func ToHTML

func ToHTML(text string, tags []ap.Tag) string

ToHTML converts plain text to HTML.

Types

This section is empty.

Jump to

Keyboard shortcuts

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