Code Monkey home page Code Monkey logo

Comments (2)

johno avatar johno commented on July 4, 2024

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.

ruzz311 avatar ruzz311 commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.