Home >CMS Tutorial >DEDECMS >What is the interception function of Dreamweaver string content?

What is the interception function of Dreamweaver string content?

藏色散人
藏色散人Original
2019-11-15 10:08:532280browse

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!

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