Home  >  Article  >  Backend Development  >  markdown How to get the text content of markdown

markdown How to get the text content of markdown

WBOY
WBOYOriginal
2016-12-01 00:56:522002browse

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

Statement:
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