waiyanhein/html-anchor-replacer

Lightweight library to crawl all the urls or links in a paragraph and replace with html anchor tags. Crawling is perfect.

dev-master 2020-01-29 20:17 UTC

This package is not auto-updated.

Last update: 2024-11-08 09:21:06 UTC


README

This is a lightweight library for replacing the urls in a paragraph with HTML anchor tags. This will detect the url perfectly even if the structure of the string is over-complicated

To install the package, use composer

composer require waiyanhein/html-anchor-replacer

Example

use HtmlAnchorReplacer/HtmlAnchorReplacer;

echo HtmlAnchorReplacer::replace("Your string");

https://github.com/waiyanhein/html-anchor-replacer