{"id":13693657,"url":"https://github.com/grokify/html-strip-tags-go","last_synced_at":"2025-04-04T07:07:19.873Z","repository":{"id":55423915,"uuid":"74261787","full_name":"grokify/html-strip-tags-go","owner":"grokify","description":"export stripTags from html/template as strip.StripTags","archived":false,"fork":false,"pushed_at":"2023-11-19T15:34:30.000Z","size":101,"stargazers_count":143,"open_issues_count":4,"forks_count":36,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T06:07:09.433Z","etag":null,"topics":["golang","html","utilities"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grokify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-20T08:28:03.000Z","updated_at":"2025-02-18T17:43:32.000Z","dependencies_parsed_at":"2023-11-19T02:42:34.255Z","dependency_job_id":"634ddae2-9ec2-411a-a246-083dfe1f4dad","html_url":"https://github.com/grokify/html-strip-tags-go","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grokify%2Fhtml-strip-tags-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grokify%2Fhtml-strip-tags-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grokify%2Fhtml-strip-tags-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grokify%2Fhtml-strip-tags-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grokify","download_url":"https://codeload.github.com/grokify/html-strip-tags-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135144,"owners_count":20889421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","html","utilities"],"created_at":"2024-08-02T17:01:14.908Z","updated_at":"2025-04-04T07:07:19.867Z","avatar_url":"https://github.com/grokify.png","language":"Go","funding_links":[],"categories":["开源类库","Open source library"],"sub_categories":["文本处理","Word Processing"],"readme":"HTML StripTags for Go\n=====================\n\n[![Used By][used-by-svg]][used-by-url]\n[![Build Status][build-status-svg]][build-status-url]\n[![Go Report Card][goreport-svg]][goreport-url]\n[![Docs][docs-godoc-svg]][docs-godoc-url]\n[![License][license-svg]][license-url]\n\nThis is a Go package containing an extracted version of the unexported `stripTags` function in `html/template/html.go`.\n\n:warning: This package does not protect against untrusted input. Please use [bluemonday](https://github.com/microcosm-cc/bluemonday) if you have untrusted data :warning:\n\n## Background\n\n* The `stripTags` function in `html/template/html.go` is very useful, however, it is not exported.\n* Requests were made [on GitHub](https://github.com/golang/go/issues/5884) without success.\n* This package is a repo for work done by [Christopher Hesse](https://github.com/christopherhesse) provided in this [Gist](https://gist.github.com/christopherhesse/d422447a086d373a967f).\n\n## Installation\n\n```bash\n$ go get github.com/grokify/html-strip-tags-go\n```\n\n## Usage\n\n```go\nimport(\n    \"github.com/grokify/html-strip-tags-go\" // =\u003e strip\n)\n\nfunc main() {\n    original := \"\u003ch1\u003eHello World\u003c/h1\u003e\"\n    stripped := strip.StripTags(original) // =\u003e \"Hello World\"\n}\n```\n\n [used-by-svg]: https://sourcegraph.com/github.com/grokify/html-strip-tags-go/-/badge.svg\n [used-by-url]: https://sourcegraph.com/github.com/grokify/html-strip-tags-go?badge\n [goreport-svg]: https://goreportcard.com/badge/github.com/grokify/html-strip-tags-go\n [goreport-url]: https://goreportcard.com/report/github.com/grokify/html-strip-tags-go\n [build-status-svg]: https://github.com/grokify/html-strip-tags-go/actions/workflows/ci.yaml/badge.svg?branch=main\n [build-status-url]: https://github.com/grokify/html-strip-tags-go/actions/workflows/ci.yaml\n [coverage-status-svg]: https://coveralls.io/repos/grokify/html-strip-tags-go/badge.svg?branch=master\n [coverage-status-url]: https://coveralls.io/r/grokify/html-strip-tags-go?branch=master\n [codeclimate-status-svg]: https://codeclimate.com/github/grokify/html-strip-tags-go/badges/gpa.svg\n [codeclimate-status-url]: https://codeclimate.com/github/grokify/html-strip-tags-go\n [docs-godoc-svg]: https://pkg.go.dev/badge/github.com/grokify/html-strip-tags-go\n [docs-godoc-url]: https://pkg.go.dev/github.com/grokify/html-strip-tags-go\n [license-svg]: https://img.shields.io/badge/license-BSD--style+patent--grant-blue.svg\n [license-url]: https://github.com/grokify/html-strip-tags-go/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrokify%2Fhtml-strip-tags-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrokify%2Fhtml-strip-tags-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrokify%2Fhtml-strip-tags-go/lists"}