Linkify urls in an Ember app with a helper that uses a tested
url-regex and Handlebars Utils.escapeExpression
to ensure links are safe.
With ember-cli@0.1.5
or later:
ember install:addon ember-linkify
Older ember-cli
versions:
npm i --save-dev ember-linkify
Use the helper with a raw string:
Or with a variable bound to an input:
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
MIT
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander(@4lpine).