{"id":20198466,"url":"https://github.com/uudashr/jquery-linkify","last_synced_at":"2025-04-10T10:52:14.304Z","repository":{"id":1883892,"uuid":"2809635","full_name":"uudashr/jquery-linkify","owner":"uudashr","description":"jQuery plugin to enable clicking on URL and hashtag","archived":false,"fork":false,"pushed_at":"2019-12-05T03:01:56.000Z","size":20,"stargazers_count":45,"open_issues_count":0,"forks_count":32,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T09:46:55.742Z","etag":null,"topics":["javascript","jquery"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uudashr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-19T16:50:26.000Z","updated_at":"2022-07-27T06:57:47.000Z","dependencies_parsed_at":"2022-09-07T17:01:29.805Z","dependency_job_id":null,"html_url":"https://github.com/uudashr/jquery-linkify","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Fjquery-linkify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Fjquery-linkify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Fjquery-linkify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Fjquery-linkify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uudashr","download_url":"https://codeload.github.com/uudashr/jquery-linkify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248203917,"owners_count":21064668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","jquery"],"created_at":"2024-11-14T04:31:30.711Z","updated_at":"2025-04-10T10:52:14.289Z","avatar_url":"https://github.com/uudashr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linkify jQuery Plugin\n\nLinkify is jQuery plugin to formatting the text that contains URL or hashtag into a clickable HTML content.\n\nIt's small, it has no test suite but handles the large majority of cases, with exceptions (e.g. detecting modern TLDs like .museum properly, or punctuation at the end of the URL). For advanced options, check out the [linkify](https://github.com/cowboy/javascript-linkify) or the [urlize](https://github.com/ljosa/urlize.js) library.\n\n## Usage\n\nInclude the plugin script\n\n``` html\n\u003cscript src=\"jquery.linkify.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n```\n\n``` js\n$(\"#content\").linkify();\n```\n  \nor to enable the hashtag link\n\n``` js\nfunction toHashtagUrl(hashtag) {\n  return \"http://myservice.com?q=\" + hashtag;\n}\n\n$(\"#content-with-hashtag\").linkify(toHashtagUrl);\n```\n\nor if you want to disable the URL that does't include http\n\n``` js\nfunction toHashtagUrl(hashtag) {\n  return \"http://myservice.com?q=\" + hashtag;\n}\n\n$(\"#content-with-hashtag\").linkify({\n\thashtagUrlBuilder: toHashtagUrl, \n\tincludeW3: false\n});\n```\n\nor to specify the target for links\n\n``` js\n$(\"#content\").linkify({\n\ttarget: \"_blank\"\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuudashr%2Fjquery-linkify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuudashr%2Fjquery-linkify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuudashr%2Fjquery-linkify/lists"}