Open hubgit opened 7 years ago
Adding a require_scheme option allows a user to disable auto-linking of things that look like URLs (e.g. www.example.com), so that only full URLs (e.g. https://www.example.com) are auto-linked. The scheme currently has to match ~^(ht|f)tps?://~.
require_scheme
www.example.com
https://www.example.com
~^(ht|f)tps?://~
Example usage:
$html = $linkify->processUrls($html, [ 'require_scheme' => true ]);
Adding a
require_scheme
option allows a user to disable auto-linking of things that look like URLs (e.g.www.example.com
), so that only full URLs (e.g.https://www.example.com
) are auto-linked. The scheme currently has to match~^(ht|f)tps?://~
.Example usage: