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

Clear link's title attribute wih undesirable characters. #18

Merged
merged 1 commit into from
Aug 23, 2014

Conversation

redd
Copy link

@redd redd commented Aug 13, 2014

Small fix to link title attribute that clears this attribute from undesirable characters. This is useful for eg. when you're using links with HTML entities in their name or you try to use icon for libs like Font Awesome (check examples: http://fortawesome.github.io/Font-Awesome/examples/).

This fix strip HTML tags, decode entities and remove unnecessary whitespaces (especially non-breaking spaces).

Important: it only strips from this yellow popup (title attribute link of <a>) not from the link text itself!

torifat added a commit that referenced this pull request Aug 23, 2014
Clear link's title attribute wih undesirable characters.
@torifat torifat merged commit b515602 into torifat:master Aug 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants