{"id":13650274,"url":"https://github.com/licitdev/directus-extension-sanitize-html","last_synced_at":"2025-09-04T07:45:22.798Z","repository":{"id":59047816,"uuid":"534726058","full_name":"licitdev/directus-extension-sanitize-html","owner":"licitdev","description":"Directus custom extension to sanitize HTML inputs ","archived":false,"fork":false,"pushed_at":"2022-09-18T15:59:01.000Z","size":199,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-21T01:41:19.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/directus-extension-sanitize-html","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/licitdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["licitdev"]}},"created_at":"2022-09-09T16:44:21.000Z","updated_at":"2024-12-06T15:32:15.000Z","dependencies_parsed_at":"2023-01-18T13:45:57.625Z","dependency_job_id":null,"html_url":"https://github.com/licitdev/directus-extension-sanitize-html","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/licitdev/directus-extension-sanitize-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licitdev%2Fdirectus-extension-sanitize-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licitdev%2Fdirectus-extension-sanitize-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licitdev%2Fdirectus-extension-sanitize-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licitdev%2Fdirectus-extension-sanitize-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/licitdev","download_url":"https://codeload.github.com/licitdev/directus-extension-sanitize-html/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licitdev%2Fdirectus-extension-sanitize-html/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273574147,"owners_count":25129882,"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-04T02:00:08.968Z","response_time":61,"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-08-02T02:00:35.482Z","updated_at":"2025-09-04T07:45:22.772Z","avatar_url":"https://github.com/licitdev.png","language":"TypeScript","readme":"# Directus Extension - Sanitize HTML\n\nSanitize HTML inputs with the [sanitize-html](https://www.npmjs.com/package/sanitize-html) package.\n\n[![NPM version][npm-version-image]][npm-url] [![License][license-image]][license-url]\n[![NPM downloads][npm-downloads-image]][npm-url]\n\n## Installation\n\n```\nnpm install directus-extension-sanitize-html\n```\n\n## Options\n\n### Customize which event scopes to sanitize\n\nAdd the `EXT_SANITIZE_HTML_EVENT_SCOPES` environment variable with the event scopes separated by commas.\n\nDefaults to running `items.create,items.update`.\n\nExample: `articles.items.create,articles.items.update`\n\n### Customize which paths to omit for sanitization\n\nAdd the `EXT_SANITIZE_HTML_OMIT_PATHS` environment variable with the `\u003ccollection\u003e.path` separated by commas.\n\nDefaults to no path to omit.\n\nExample: `articles.content,website.rawHtml`\n\n### Customize which HTML tags are allowed\n\nAdd the `EXT_SANITIZE_HTML_ALLOWED_TAGS` environment variable with the `\u003chtml-tag\u003e` separated by commas.\n\nDefaults to `undefined`, using the defaults from `sanitize-html`.\n\nExample: `a,b,i,em,strong`\n\n### Customize the action taken for disallowed tags\n\nAdd the `EXT_SANITIZE_HTML_DISALLOWED_TAGS_MODE` environment variable with `discard`, `escape` or `recursiveEscape`.\n\nDefaults to `undefined`, using the defaults from `sanitize-html`.\n\nExample: `escape`\n\n## License\n\nGPLv3 License. See the [LICENSE](LICENSE) file.\n\n[npm-downloads-image]: https://img.shields.io/npm/dm/directus-extension-sanitize-html.svg?style=flat-square\n[npm-version-image]: https://img.shields.io/npm/v/directus-extension-sanitize-html.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/directus-extension-sanitize-html\n[license-url]: https://github.com/licitdev/directus-extension-sanitize-html/blob/main/LICENSE\n[license-image]: https://img.shields.io/npm/l/directus-extension-sanitize-html.svg?style=flat-square\n","funding_links":["https://github.com/sponsors/licitdev"],"categories":["Extensions"],"sub_categories":["Community"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flicitdev%2Fdirectus-extension-sanitize-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flicitdev%2Fdirectus-extension-sanitize-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flicitdev%2Fdirectus-extension-sanitize-html/lists"}