josianocarvalho / extract-hyperlinks
There is no license information available for the latest version (dev-main) of this package.
Use html strip tag functions and extract links inside href to be used as unformatted html
dev-main
2021-12-30 01:50 UTC
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-06-29 02:07:47 UTC
README
Use html strip tag functions and extract links inside href to be used as unformatted html
Install using composer
composer require josianocarvalho/extract-hyperlinks
$text = "<p>Hi, this is my link <a href='http://test.com'> HERE </a> </p>"; $text = new ExtractHyperLink($text); echo $text->output(); //--> <p>Hi, this is my link HERE (http://test.com) </p>