s9e/text-formatter
PHP text formatting library with plugin support for BBCode, Markdown, HTML, and more. Includes predefined bundles, extensive documentation, and a JavaScript port for client-side preview and demos. Install via Composer and integrate customizable parsing/rendering.
By default, only http:// and https:// URLs are allowed. URLs that use a difference scheme are rejected but they might still appear as plain text.
In the following example, we remove http from the list of allowed schemes and add ftps.
$configurator = new s9e\TextFormatter\Configurator;
$configurator->urlConfig->allowScheme('ftps');
$configurator->urlConfig->disallowScheme('http');
print_r($configurator->urlConfig->getAllowedSchemes());
Array
(
[0] => https
[1] => ftps
)
How can I help you explore Laravel packages today?