linkify-string
Linkify String Interface. Use
linkify-string
to detect URLs, email addresses and more in plain-text strings and wrap them with anchor <a>
tags.This function will not parse strings with HTML. Use one of the following instead, depending on your application:
Installation
Install from the command line with NPMnpm install linkifyjs linkify-string
Import into your JavaScript with
require
const linkifyStr = require('linkify-string');
or with ES modulesimport linkifyStr from 'linkify-string';