Home >Backend Development >PHP Tutorial > 怎么自动截取文章内容作为文章的简介

怎么自动截取文章内容作为文章的简介

WBOY
WBOYOriginal
2016-06-13 12:29:581545browse

如何自动截取文章内容作为文章的简介
我想实现的是,在添加文章的时候自动把内容截取100字作为文章简介,但是因为内容是有格式的文本,怎么样把html格式去掉,只截取文章部分呢?

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