{"id":15022900,"url":"https://github.com/minutebase/ember-sanitize","last_synced_at":"2025-10-24T20:32:14.281Z","repository":{"id":20726010,"uuid":"24010144","full_name":"minutebase/ember-sanitize","owner":"minutebase","description":"Sanitize user provided HTML in your Ember CLI app","archived":false,"fork":false,"pushed_at":"2018-11-07T19:09:16.000Z","size":43,"stargazers_count":11,"open_issues_count":7,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-31T04:25:52.702Z","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/minutebase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-14T00:51:51.000Z","updated_at":"2019-06-10T00:29:45.000Z","dependencies_parsed_at":"2022-08-30T02:40:40.017Z","dependency_job_id":null,"html_url":"https://github.com/minutebase/ember-sanitize","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-sanitize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-sanitize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-sanitize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-sanitize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minutebase","download_url":"https://codeload.github.com/minutebase/ember-sanitize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238035385,"owners_count":19405682,"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":[],"created_at":"2024-09-24T19:58:30.334Z","updated_at":"2025-10-24T20:32:13.386Z","avatar_url":"https://github.com/minutebase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-sanitize\n\nAn Ember CLI addon to sanitize user provided content using [sanitize.js](https://github.com/gbirke/Sanitize.js).\n\n## Using\n\n### Installation\n\nInstall this addon via npm:\n\n```\nnpm install --save-dev ember-sanitize\n```\n\nThen run the generator to install `sanitize.js`:\n\n```\nember generate ember-sanitize\n```\n\n### Usage\n\nSimply use the `sanitize-html` helper in your template:\n\n```handlebars\n{{sanitize-html someValue}}\n```\n\nThis will use the most restrictive sanititizer config by default, which will strip all HTML.\n\nTo use your own sanitizer configuration, add a file to `/app/sanitizers/` which exports an object\nconforming to [sanitizer's configuration options](https://github.com/gbirke/Sanitize.js#configuration).\n\nFor example:\n\n```js\n// /app/sanitizers/strict.js\nexport default {\n  elements: ['b', 'em', 'i', 'strong', 'u']\n};\n```\n\nYou can then use this configuration by passing it in as the second argument to the helper:\n\n```handlebars\n{{sanitize-html someValue \"strict\"}}\n```\n\n## Developing\n\n### Installation\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n### Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n### Running Tests\n\n* `ember test`\n* `ember test --server`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminutebase%2Fember-sanitize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminutebase%2Fember-sanitize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminutebase%2Fember-sanitize/lists"}