Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to avoid certain tags? #57

Closed
deathg0d opened this issue Jan 28, 2015 · 4 comments
Closed

Is there a way to avoid certain tags? #57

deathg0d opened this issue Jan 28, 2015 · 4 comments

Comments

@deathg0d
Copy link

It would be nice if linkify could avoid certain tags. For example do not linkify what's inside <code> or pre tags.

@nfrasser
Copy link
Collaborator

Hmm, not yet, but that's a great suggestion. Thanks @deathg0d !

@nfrasser nfrasser modified the milestone: 2.0 Jan 28, 2015
@nfrasser nfrasser modified the milestones: 2.1, 2.0 Feb 9, 2015
@saturday1
Copy link

Also not <style>. I tried to do this. And it works as a script, but not with linkify():

jQuery('#container *').not( jQuery('style') ).each(function(){
    jQuery(this).linkify();
    //TESTING
    //jQuery(this).addClass('i-am-not-a-style-element');
});

@MrShaneH
Copy link

plus one this, it would be great to be able to add an attribute or class to instruct linkify to ignore a link
e.g.

<span data-nolinkify class="nolinkify">Everything in here that matches www.example.com is ignored</span>

@Wikunia
Copy link

Wikunia commented Oct 15, 2015

I would like to use linkify on something like <img class="emojione" alt="😄" src="//cdn.jsdelivr.net/emojione/assets/png/1F604.png?v=1.2.4"/> which makes anything unreadable. :/

@nfrasser nfrasser mentioned this issue Apr 17, 2016
5 tasks
@nfrasser nfrasser removed this from the 4.1+ milestone Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants