# jquery-linkify

> jQuery plugin to enable clicking on URL and hashtag

Latest version **2.2.1** (published 2017-12-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install jquery-linkify
pnpm add jquery-linkify
yarn add jquery-linkify
bun add jquery-linkify
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.1 |
| Published | 2017-12-08 |
| First published | 2017-12-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | laszlof |

## Links

- npm: https://www.npmjs.com/package/jquery-linkify
- Repository: https://github.com/nocworx/jquery-linkify
- Issues: https://github.com/nocworx/jquery-linkify/issues
- npm.io page: https://npm.io/package/jquery-linkify

## Recent versions

- 2.2.1 (latest) — 2017-12-08
- 2.2.0 — 2017-12-08

## README

# Linkify jQuery Plugin

Linkify is jQuery plugin to formatting the text that contains URL or hashtag into a clickable HTML content.

## Usage

Include the plugin script

``` html
<script src="jquery.linkify.js" type="text/javascript"></script>
```

``` js
$("#content").linkify();
```
  
or to enable the hashtag link

``` js
function toHashtagUrl(hashtag) {
  return "http://myservice.com?q=" + hashtag;
}

$("#content-with-hashtag").linkify(toHashtagUrl);
```

or if you want to disable the URL that does't include http

``` js
function toHashtagUrl(hashtag) {
  return "http://myservice.com?q=" + hashtag;
}

$("#content-with-hashtag").linkify({
	hashtagUrlBuilder: toHashtagUrl, 
	includeW3: false
});
```

or to specify the target for links

``` js
$("#content").linkify({
	target: "_blank"
});
```

---
_Source: https://npm.io/package/jquery-linkify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
