linkify-html
Linkify HTML String Interface. Use
linkify-html
to detect URLs, email addresses and more in strings that contain HTML markup and replace them with anchor <a>
tags.Installation
Install from the command line with NPMnpm install linkifyjs linkify-html
Import into your JavaScript with
require
const linkifyHtml = require('linkify-html');
or with ES modulesimport linkifyHtml from 'linkify-html';