1.1.4 • Published 1 year ago

linkify-urls-in-rich-text v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

功能介绍

纯文本中包含类超链的文字,转换为富文本标签, 如
使用www.baidu.com可以进行中文搜索 to 使用<a href="www.baidu.com">www.baidu.com</a>可以进行中文搜索

安装

npm install linkify-urls-in-rich-text --save
import linkifyUrlsInRichText from 'linkify-urls-in-rich-text'
const text = linkifyUrlsInRichText('使用www.baidu.com可以进行中文搜索')
// 使用<a href="www.baidu.com">www.baidu.com</a>可以进行中文搜索
console.log(text)

功能

参考 单侧case

参考项目

https://github.com/sindresorhus/get-urls

1.1.4

1 year ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago