https://github.com/benpate/htmlconv
HTML manipulations for Go
https://github.com/benpate/htmlconv
Last synced: 3 months ago
JSON representation
HTML manipulations for Go
- Host: GitHub
- URL: https://github.com/benpate/htmlconv
- Owner: benpate
- License: apache-2.0
- Created: 2020-03-19T04:10:15.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-04T07:53:14.000Z (over 1 year ago)
- Last Synced: 2025-02-08T22:45:05.837Z (5 months ago)
- Language: Go
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTMLConv 🤓
[](http://pkg.go.dev/github.com/benpate/htmlconv)
[](https://github.com/benpate/htmlconv/actions/workflows/go.yml)
[](https://codecov.io/gh/benpate/htmlconv)
[](https://goreportcard.com/report/github.com/benpate/htmlconv)
[](https://github.com/benpate/htmlconv/releases)## Simple Go (golang) library for manipulating HTML content
```go
FromText(text) htmlToText(html) text
IsHTML(string) bool
RemoveTags(html) string
Summary(html) string
CollapseWhitespace(string) string
```## Pull Requests Welcome
Original versions of this library have been used in production on commercial applications for years, and the extra data collection has been a tremendous help for everyone involved.
I'm now open sourcing this library, and others, with hopes that you'll also benefit from a more robust error package.
Please use GitHub to make suggestions, pull requests, and enhancements. We're all in this together! 🤪