Socket
Socket
Sign inDemoInstall

linkify-jquery

Package Overview
Dependencies
2
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    linkify-jquery

jQuery interface for linkifyjs


Version published
Maintainers
1
Created

Changelog

Source

v4.0.0

BREAKING CHANGES

  • Removed deprecated linkifyjs/string, linkifyjs/html, linkifyjs/plugins/* packages. Use linkify-string, linkify-html and linkify-plugin-* instead.
  • Refactored scanner internals break custom link plugins created with Linkify v3
  • Links that begin with mailto: now have type url instead of email
  • Drop official IE 11 support

Added

  • linkify-plugin-ip plugin for detecting IPv4 and IPv6 addresses
  • linkify-plugin-keyword plugin for detecting arbitrary keywords
  • linkify.find() function accepts an options argument for output formatting
  • New render option to override link rendering
  • Second optionalSlashSlash argument for registerCustomProtocol to allow links that don't require // after scheme:
  • Link token methods toFormattedString(options), toFormattedHref(options) and toFormattedObject(options) that accept a linkify.Options object
  • More granular scanner tokens for improved plugin flexibility
  • linkify-react: New as property (alias for tagName)

Fixed

  • Improved link detection with mixed languages
  • Consistent option availability across interfaces (including truncate)
  • linkify-html: Improved HTML entity parsing

Readme

Source

linkify-jquery

Linkify jQuery plugin. Also available in vanilla JavaScript via linkify-element.

Installation

Install from the command line with NPM

npm install linkifyjs linkify-jquery

Import into your JavaScript with require

const $ = require('jquery');
require('linkify-jquery')

or with ES modules

import $ from 'jquery';
import 'linkify-jquery';

If a window.document global is not available in your environment, provide it manually instead as follows.

With require:

require('linkify-jquery')($, document);

or with ES modules:

import linkifyJq from 'linkify-jquery';
linkifyJq($, document);

Usage

Read the full documentation.

License

MIT

Keywords

FAQs

Last updated on 19 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc