laravel articles are displayed after removing html tags

Articles stored in the database using the editor all have html tags, which are used to format the article format.

 

I want to display and remove html tags on the web page, using laravel's own method

 

{!! article !!}

 

In this way, the html tags of the article can be escaped by themselves.

 

The article list page cannot display all the content of the article, so limit the number of characters and use laravel's own method

 

str_limit ( $post , 100 , ... ) 

 

The first parameter is the content of the article, the second parameter is to display more than a few characters, and the third parameter is to hide the excess characters. Use this to display.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325276180&siteId=291194637