html2text icon indicating copy to clipboard operation
html2text copied to clipboard

Support extracting the raw URL from the HTML href attribute

Open phpfui opened this issue 2 years ago • 1 comments

Often you just need the raw URL from an A tag. Added the parameter 'href' to the drop_links to return just the raw URL. Email clients like Gmail will correctly process raw URLs, so this can be useful when returning markup is not desired.

Also updated the tests for PHP 8.3 and fixed a static warning.

phpfui avatar Dec 21 '23 02:12 phpfui