Home > CMS Tutorial > DEDECMS > body text

What is the interception function of Dreamweaver string content?

藏色散人
Release: 2019-11-15 10:08:53
Original
2250 people have browsed it

What is the interception function of Dreamweaver string content?

What is the interception function for DreamWeaver string content?

In the secondary development and website construction of Dedecms, we often use the problem of string interception. In Dedecms, there are two commonly used string content interception functions. .

Html2text() The function is to remove the html tag code.

cn_substr(str,80) The function intercepts the length of the string.

Of course, they can also be combined and used:

[field:body function="cn_substr(Html2text(@me),80)"/]

The above is the detailed content of What is the interception function of Dreamweaver string content?. For more information, please follow other related articles on the PHP Chinese website!

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