html

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadHtml

func ReadHtml(path string) (string, error)

ReadHtml converts an HTML file located at the specified path to plain text.

It reads the HTML file, processes it to extract only the text content (excluding HTML formatting), and returns the plain text representation.

Parameters:

  • path: A string containing the file path to the HTML document to be converted.

Returns:

  • string: The plain text content extracted from the HTML document.
  • error: An error if the file cannot be opened or if the HTML conversion fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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