josianocarvalho/extract-hyperlinks

此包的最新版本(dev-main)没有可用的许可证信息。

使用HTML去除标签函数并提取href内的链接,作为未格式化的HTML使用

dev-main 2021-12-30 01:50 UTC

This package is auto-updated.

Last update: 2024-09-29 05:57:04 UTC


README

使用HTML去除标签函数并提取href内的链接,作为未格式化的HTML使用

使用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>