package
module
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Jul 26, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
html2text
Simple html to text converter.
How to install
go get github.com/causelovem/html2text
How to use
package main
import (
"fmt"
"github.com/causelovem/html2text"
)
func main() {
html := `<div><h1>some text</h1></div> <p>to be <b>cleared</b> </br> from "html" <tags></p>`
text := html2text.HTML2Text(html)
fmt.Println(text)
}
Documentation
¶
HTML2Text extracts text from html
Source Files
¶
Click to show internal directories.
Click to hide internal directories.