Updating readme
This commit is contained in:
@ -55,11 +55,11 @@ Becomes:
|
|||||||
|
|
||||||
### Strip Shortcodes
|
### Strip Shortcodes
|
||||||
|
|
||||||
You can strip shortcodes from text using the `Shortcode::strip` function. For example, when using with the `Sensory5\BlogExtension` plugin, you can strip shortcodes from the summary using the following code:
|
You can strip shortcodes from text using the `Shortcode::strip` function.
|
||||||
|
|
||||||
|
|
||||||
|
\Shortcode::strip($content);
|
||||||
|
|
||||||
Event::listen('sensory5.blog.summary', function($content) {
|
|
||||||
return Str::limit(Html::strip(\Shortcode::strip($content)), 600);
|
|
||||||
});
|
|
||||||
|
|
||||||
### Dependency Issues with Service Provider and Facade
|
### Dependency Issues with Service Provider and Facade
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user