yansongda / laravel-parsehtml
Convert Html To Markdown With Laravel
Installs: 2 999
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- illuminate/support: ^5.1
- league/html-to-markdown: ~4.6
README
This Package depends on league/html-to-markdown
Installation
$ composer require yansongda/laravel-parsehtml
Add service provider
<?php Yansongda\LaravelParsehtml\ParsehtmlServiceProvider::class,
Add alias
<?php 'LaravelParsehtml' => Yansongda\LaravelParsehtml\Facades\Parsehtml::class,
Config(OPTION)
$ php artisan vendor:publish --provider="Yansongda\\LaravelParsehtml\\ParsehtmlServiceProvider" --tag=laravel-html-config
Reference: league/html-to-markdown
Usage
Using blade
<?php @parsehtml('<h2>blablabla</h2>');
Using Helper
<?php {{ parsehtml('<h2>blablabla</h2>') }}
License
MIT