Popularity
0.4
Growing
Activity
0.0
Stable
4
2
0

Monthly Downloads: 0
Programming language: JavaScript
License: MIT License
Tags: Editors     UI     JavaScript     Link     Anchor Tag    

convert-plain-text-into-links alternatives and similar libraries

Based on the "Editors" category.
Alternatively, view convert-plain-text-into-links alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of convert-plain-text-into-links or a related project?

Add another 'Editors' Library

README

https://www.npmjs.com/package/convert-plain-text-into-links

An npm module which replaces any plain text link within string with anchor tag

How to install

$ npm i convert-plain-text-into-links

How to use

import convertPlainTextIntoLinks from 'convert-plain-text-into-links'

const htmlString = convertPlainTextIntoLinks('For more info visit our website https://www.freetrail.com or www.example.com', '_blank', 'white')

console.log(htmlString)

OUTPUT--> For more info visit our website<pre> </pre><a href="https://www.freetrail.com" target="_blank" style="color:white;">https://www.freetrail.com</a> or<pre> </pre><a href="http://www.example.com" target="_blank" style="color:white;" >www.example.com</a>