| Package Data | |
|---|---|
| Maintainer Username: | yansongda |
| Maintainer Contact: | me@yansongda.cn (yansongda) |
| Package Create Date: | 2017-09-04 |
| Package Last Update: | 2018-12-10 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-06 15:07:16 |
| Package Statistics | |
|---|---|
| Total Downloads: | 3,003 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 4 |
| Total Watchers: | 1 |
| Total Forks: | 2 |
| Total Open Issues: | 0 |
This Package depends on league/html-to-markdown
$ composer require yansongda/laravel-parsehtml
<?php
Yansongda\LaravelParsehtml\ParsehtmlServiceProvider::class,
<?php
'LaravelParsehtml' => Yansongda\LaravelParsehtml\Facades\Parsehtml::class,
$ php artisan vendor:publish --provider="Yansongda\\LaravelParsehtml\\ParsehtmlServiceProvider" --tag=laravel-html-config
| config | desc | | :----------: | :------------------------: | | strip_tags | strip HTML tags that don't have a Markdown equivalent | | remove_nodes | strip tags and their content | | italic_style | | | bold_style | | | hard_break | | | header_style | atx/etx |
Reference: league/html-to-markdown
<?php
@parsehtml('<h2>blablabla</h2>');
<?php
{{ parsehtml('<h2>blablabla</h2>') }}
MIT