josianocarvalho / extract-hyperlinks
Use html strip tag functions and extract links inside href to be used as unformatted html
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/josianocarvalho/extract-hyperlinks
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-12-29 04:00:24 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>