Comments (2)
Thanks for creating this issue! The current behavior is currently by design, as it assumes that user generated text might be passed to it. I'd like to keep this as the default so it can safely handle user generated content.
However, we could add in the ability to set anunsafe
option which will render html rather than escape it (for contexts where internal text is passed and we don't have to worry about XSS).
Thoughts?
from ember-linkify.
After using and abusing this helper earlier this afternoon that's what I came to realize about the intended purpose. Between looking at the source and looking through what @kevva did over at kevva/url-regex I was able to put together something together. It probably belongs in the serializer/model but that's another story. I'll be back to use this add-on when I have user-supplied content, tweets or similar!
I'm closing the issue but if someone comes back to +1 later maybe they'll see someone else had the same idea and thought better than to icky a good project up with unsafe html. Cheers.
from ember-linkify.
Related Issues (18)
- Add strict option
- Support ip addresses in urls HOT 2
- Consider supporting multiple links separated by punctuation HOT 9
- Support "rel" attribute HOT 2
- Add a linkify component HOT 2
- Don't include punctuation in link HOT 1
- Trailing newlines are stripped HOT 4
- Readme doesn't state target possibility HOT 2
- URLs with fragments without a leading '/' not supported HOT 4
- Use default ember transitions for internal links HOT 3
- Localhost links aren't recognised
- Update babel
- Target attribute HOT 2
- ember-linkify generates deprecation warning with latest ember: ember-cli-babel 5.2.4->6.6
- ember-linkify does not work with the latest Ember (3.7) HOT 1
- Add `tmp` dir to the .npmignore. HOT 1
- Use new Helper API HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-linkify.