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.

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:dev

pkg:composer/waiyanhein/html-anchor-replacer

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

This package is not auto-updated.

Last update: 2025-10-10 13:49:51 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