Home >CMS Tutorial >DEDECMS >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!