{"id":15503038,"url":"https://github.com/johno/strip-html-comments","last_synced_at":"2025-09-06T02:32:47.762Z","repository":{"id":57372767,"uuid":"39224307","full_name":"johno/strip-html-comments","owner":"johno","description":"Remove HTML comments from a string","archived":false,"fork":false,"pushed_at":"2015-11-02T20:14:12.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T14:54:30.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johno.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}},"created_at":"2015-07-16T22:53:42.000Z","updated_at":"2021-11-06T08:27:34.000Z","dependencies_parsed_at":"2022-09-05T13:31:10.984Z","dependency_job_id":null,"html_url":"https://github.com/johno/strip-html-comments","commit_stats":null,"previous_names":["johnotander/strip-html-comments"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/johno/strip-html-comments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fstrip-html-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fstrip-html-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fstrip-html-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fstrip-html-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johno","download_url":"https://codeload.github.com/johno/strip-html-comments/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fstrip-html-comments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273848324,"owners_count":25178893,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-02T09:11:56.233Z","updated_at":"2025-09-06T02:32:47.740Z","avatar_url":"https://github.com/johno.png","language":"JavaScript","readme":"# strip-html-comments [![Build Status](https://secure.travis-ci.org/johnotander/strip-html-comments.png?branch=master)](https://travis-ci.org/johnotander/strip-html-comments) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\nRemove HTML comments from a string. This is intended to be a simple utility for the most trivial of comment stripping.\n\n## Installation\n\n```bash\nnpm install --save strip-html-comments\n```\n\n## Usage\n\n```javascript\nvar stripHtmlComments = require('strip-html-comments')\n\nstripHtmlComments('\u003cspan\u003efoo\u003c!--bar--\u003e\u003c/span\u003e')  // =\u003e '\u003cspan\u003efoo\u003c/span\u003e\n```\n\n## Known Limitations\n\nIt will remove comments in `\u003ctextarea\u003e`s:\n\n```html\n\u003ctextarea\u003e\u003c!-- comment in a textarea --\u003e\u003c/textarea\u003e\n```\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nCrafted with \u003c3 by John Otander ([@4lpine](https://twitter.com/4lpine)).\n\n***\n\n\u003e This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fstrip-html-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohno%2Fstrip-html-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fstrip-html-comments/lists"}