{"id":15503118,"url":"https://github.com/johno/ember-linkify","last_synced_at":"2025-06-14T17:03:45.851Z","repository":{"id":23424512,"uuid":"26787390","full_name":"johno/ember-linkify","owner":"johno","description":"Linkify urls in an Ember app with a fancy helper","archived":false,"fork":false,"pushed_at":"2023-06-08T12:17:49.000Z","size":159,"stargazers_count":22,"open_issues_count":9,"forks_count":30,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-22T23:36:52.905Z","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.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-11-18T02:02:44.000Z","updated_at":"2022-08-30T17:14:56.000Z","dependencies_parsed_at":"2024-06-19T17:38:40.881Z","dependency_job_id":"92b88ebd-c6bd-459c-a558-f0a536935214","html_url":"https://github.com/johno/ember-linkify","commit_stats":null,"previous_names":["johnotander/ember-linkify"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/johno/ember-linkify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-linkify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-linkify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-linkify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-linkify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johno","download_url":"https://codeload.github.com/johno/ember-linkify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-linkify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259851663,"owners_count":22921627,"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-10-02T09:12:14.099Z","updated_at":"2025-06-14T17:03:45.822Z","avatar_url":"https://github.com/johno.png","language":"JavaScript","readme":"# ember-linkify [![Build Status](https://travis-ci.org/johnotander/ember-linkify.svg?branch=master)](https://travis-ci.org/johnotander/ember-linkify) [![Ember Observer Score](http://emberobserver.com/badges/ember-linkify.svg)](http://emberobserver.com/addons/ember-linkify)\n\nLinkify URLs in an Ember app with a helper that uses a tested\n[url-regex](https://github.com/kevva/url-regex) and Handlebars `Utils.escapeExpression`\nto ensure links are safe.\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-linkify\n```\n\n## Usage\n\n```hbs\n{{linkify post.description}}\n```\n\n```hbs\n{{linkify commentText}}\n```\n\n##### Use the helper with a raw string\n\n```hbs\n{{linkify 'Here is a link: https://google.com and some attempted XSS \u003cscript\u003ealert(\"xss!\");\u003c/script\u003e'}}\n{{! =\u003e 'Here is a link: \u003ca href=\"https://google.com\"\u003ehttps://google.com\u003c/a\u003e and some attempted XSS \u0026lt;script\u0026gt;alert(\u0026quot;xss!\u0026quot;);\u0026lt;/script\u0026gt;'}}\n```\n\n##### Or with a variable bound to an input\n\n```hbs\n{{textarea value=text placeholder='Enter some text with a url'}}\n{{linkify text}}\n```\n\n##### You can specify options to the helper such as 'urlLength' which shortens the URL by 'urlLength' and add 3 dots to the end \n\n\n```hbs\n{{linkify text urlLength=30}}\n```\n\n##### The 'defaultScheme' option specifies a scheme to use for URLs that don’t already have one.\n\nFor instance, the following will ensure that the `https` scheme is used for the created link:\n\n```hbs\n{{linkify 'Link without a scheme: www.foo.com' defaultScheme='https'}}\n```\n\n##### Also use options to specify attributes you want to add to the generated anchor tags. Currently, \"target\", \"rel\" and \"class\" are the only recognized attributes.\n\n```hbs\n{{linkify text target='_blank' rel='nofollow' class='external-link'}}\n```\n\n## Development\n\n### Installation\n\n* `git clone` this repository\n* `cd my-addon`\n* `npm install`\n\n### Running\n\n* `ember server`\n* Visit your app at [http://localhost:4200](http://localhost:4200).\n\n### Running Tests\n\n* `ember test`\n* `ember test --server`\n* `ember try:each` – Runs the test suite against multiple Ember versions\n\n### Building\n\n* `ember build`\n\nFor more information on using `ember-cli`, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).\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\n***\n\n\u003e Crafted with \u003c3 by [John Otander](http://johnotander.com)([@4lpine](https://twitter.com/4lpine)).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fember-linkify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohno%2Fember-linkify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fember-linkify/lists"}