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

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

WBOY
Release: 2016-06-13 12:29:58
Original
1549 people have browsed it

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

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