markdown How to get the text content of markdown

WBOY
Release: 2023-03-02 07:20:01
Original
2068 people have browsed it

How to get the markdown text is to get the text content of the label, because sometimes the general content of the knowledge text that needs to be presented does not require the stitching style
I use the one here

markdown library laravel-5-markdown-editor

Reply content:

How to get the markdown text is to get the text content of the label, because sometimes the general content of the knowledge text that needs to be presented does not require the stitching style
I use the one here

markdown library laravel-5-markdown-editor

Isn’t it possible to parse markdown into html format first, and then use the php function to remove the html tag? strip_tags

Since the one above cannot satisfy you, then use your own regular expression to filter the markdown format

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!