{"id":21964403,"url":"https://github.com/beliven-it/fastify-strip-html","last_synced_at":"2026-05-11T07:39:20.888Z","repository":{"id":42717743,"uuid":"271745862","full_name":"beliven-it/fastify-strip-html","owner":"beliven-it","description":"A plugin to automatically strip HTML tags from response payload","archived":false,"fork":false,"pushed_at":"2023-01-07T02:44:03.000Z","size":876,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T21:19:56.704Z","etag":null,"topics":["fastify","html","js","nodejs","security","strip","tags"],"latest_commit_sha":null,"homepage":null,"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/beliven-it.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":"2020-06-12T08:16:16.000Z","updated_at":"2022-09-23T14:36:13.000Z","dependencies_parsed_at":"2023-02-06T10:46:11.232Z","dependency_job_id":null,"html_url":"https://github.com/beliven-it/fastify-strip-html","commit_stats":null,"previous_names":["heply/fastify-strip-html"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beliven-it/fastify-strip-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beliven-it%2Ffastify-strip-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beliven-it%2Ffastify-strip-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beliven-it%2Ffastify-strip-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beliven-it%2Ffastify-strip-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beliven-it","download_url":"https://codeload.github.com/beliven-it/fastify-strip-html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beliven-it%2Ffastify-strip-html/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265430639,"owners_count":23764008,"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":["fastify","html","js","nodejs","security","strip","tags"],"created_at":"2024-11-29T12:07:55.451Z","updated_at":"2026-05-11T07:39:15.827Z","avatar_url":"https://github.com/beliven-it.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastify-strip-html\n\nA plugin to automatically strip HTML tags from response payload\n\n![Node.js CI](https://github.com/heply/fastify-strip-html/workflows/Node.js%20CI/badge.svg)\n\n## Install\n\n```bash\n$ npm i --save fastify-strip-html\n```\n\n## Usage\n\n```js\nfastify.register(require('fastify-strip-html'), {\n  stripFromResponse: true\n})\n\n// To test it manually:\n\nconsole.log(fastify.stripHtml('\u003ca\u003eHello World\u003c/a\u003e'))\n\n// \u003ca\u003eHello World\u003c/a\u003e -\u003e Hello World\n```\n\n## Options\n\n| Name                  | Description                                                            |\n|-----------------------|------------------------------------------------------------------------|\n| `stripFromResponse`   | Register a `onSend` hook to strip HTML tags out from a string payload. |\n\n## Test\n\n```bash\n$ npm test\n```\n\n## Acknowledgements\n\nThis project is kindly sponsored by:\n\n[![Beliven](https://assets.beliven.com/brand/logo_pos_color.svg)](https://www.beliven.com)\n\n## License\n\nLicensed under [MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeliven-it%2Ffastify-strip-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeliven-it%2Ffastify-strip-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeliven-it%2Ffastify-strip-html/lists"}