{"id":16318007,"url":"https://github.com/workmanw/ember-string-ishtmlsafe-polyfill","last_synced_at":"2025-04-08T13:33:07.793Z","repository":{"id":57224383,"uuid":"56516657","full_name":"workmanw/ember-string-ishtmlsafe-polyfill","owner":"workmanw","description":"A polyfill for Ember.String.isHtmlSafe. See: https://github.com/emberjs/rfcs/pull/139","archived":false,"fork":false,"pushed_at":"2018-05-28T17:11:27.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T23:33:01.366Z","etag":null,"topics":["ember","ember-addon","polyfill"],"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/workmanw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-04-18T14:51:48.000Z","updated_at":"2018-05-28T17:01:31.000Z","dependencies_parsed_at":"2022-09-04T07:01:22.387Z","dependency_job_id":null,"html_url":"https://github.com/workmanw/ember-string-ishtmlsafe-polyfill","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workmanw%2Fember-string-ishtmlsafe-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workmanw%2Fember-string-ishtmlsafe-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workmanw%2Fember-string-ishtmlsafe-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workmanw%2Fember-string-ishtmlsafe-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workmanw","download_url":"https://codeload.github.com/workmanw/ember-string-ishtmlsafe-polyfill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247852074,"owners_count":21006877,"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":["ember","ember-addon","polyfill"],"created_at":"2024-10-10T22:09:44.925Z","updated_at":"2025-04-08T13:33:04.440Z","avatar_url":"https://github.com/workmanw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-string-ishtmlsafe-polyfill [![Build Status](https://travis-ci.org/workmanw/ember-string-ishtmlsafe-polyfill.svg?branch=master)](https://travis-ci.org/workmanw/ember-string-ishtmlsafe-polyfill)\n\nThis provides a polyfill for the `Ember.String.isHTMLSafe` feature added in Ember 2.8.\n\nRFC: [emberjs/rfcs#139](https://github.com/emberjs/rfcs/pull/139).\n\nPR: [emberjs/ember.js#13666](https://github.com/emberjs/ember.js/pull/13666).\n\nAPI: [Ember.String.isHTMLSafe](http://emberjs.com/api/classes/Ember.String.html#method_isHTMLSafe)\n\n\n## Installation\n\n```\nember install ember-string-ishtmlsafe-polyfill\n```\n\n\n## Usage\n\n```javascript\nimport Ember from 'ember';\n\nvar plainString = 'plain string';\nvar safeString = Ember.String.htmlSafe('\u003cdiv\u003esomeValue\u003c/div\u003e');\n\nEmber.String.isHTMLSafe(plainString); // false\nEmber.String.isHTMLSafe(safeString);  // true\n```\n\n\n## Migration\n\n### Applications\n\nAfter you upgrade your application to Ember 2.8, you should remove `ember-string-ishtmlsafe-polyfill`\nfrom your `package.json`.\n\n### Addons\n\nAddons generally support many different Ember versions, so leaving `ember-string-ishtmlsafe-polyfill`\nin place for consumers of your addon is perfectly normal.  When the addon no longer supports\nEmber versions older than 2.8, we recommend removing `ember-string-ishtmlsafe-polyfill` from\nyour `package.json` and doing a major version bump.\n\n\n## Compatibility\n\nThis addon is tested against each minor Ember version starting with 1.10 through 2.8\n(when `isHTMLSafe()` landed). Additionally tested against, `ember-stable`, `ember-beta`,\nand `ember-canary`. A complete list can be found in the\n[`ember-try.js`](https://github.com/workmanw/ember-string-ishtmlsafe-polyfill/blob/master/config/ember-try.js)\nconfig.\n\n\n## Running Tests\n\n* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkmanw%2Fember-string-ishtmlsafe-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkmanw%2Fember-string-ishtmlsafe-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkmanw%2Fember-string-ishtmlsafe-polyfill/lists"}