Home > CMS Tutorial > DEDECMS > body text

What are the DEDE collection filtering rules?

藏色散人
Release: 2020-01-03 09:16:13
Original
1988 people have browsed it

What are the DEDE collection filtering rules?

What are the DEDE collection filtering rules?

DEDE collection filtering rules often used in the collection process of Dreamweaver DEDECMS

Recommended learning:Dreamweaver cms

Generally in DEDE During the collection process, you need to filter or delete, or comment out some other people's information, such as hyperlinks, pictures, etc., you need to use these filtering rules to comment out all the resources that you do not want to collect. This greatly reduces the amount of spam collected and takes up space.

{dede:trim}<span(.*)>{/dede:trim} 
{dede:trim}</span>{/dede:trim} 
{dede:trim}<div(.*)>{/dede:trim} 
{dede:trim}</div>{/dede:trim} 
{dede:trim}<li>{/dede:trim} 
{dede:trim}</li>{/dede:trim}
{dede:trim}<ul>{/dede:trim} 
{dede:trim}</ul>{/dede:trim} 
{dede:trim}<font(.*)>{/dede:trim} 
{dede:trim}</font>{/dede:trim} 
{dede:trim}<table(.*)>{/dede:trim} 
{dede:trim}</table>{/dede:trim} 
{dede:trim}<tbody(.*)>{/dede:trim} 
{dede:trim}</tbody>{/dede:trim} 
{dede:trim}<tr(.*)>{/dede:trim} 
{dede:trim}</tr>{/dede:trim} 
{dede:trim}<td(.*)>{/dede:trim} 
{dede:trim}</td>{/dede:trim} 
{dede:trim}<a(.*)>{/dede:trim} 
{dede:trim}</a>{/dede:trim} 
{dede:trim}<iframe(.*)</iframe>{/dede:trim}
{dede:trim}<style(.*)</style>{/dede:trim} 
{dede:trim}<script(.*)</script>{/dede:trim} 
{dede:trim}<option(.*)</option>{/dede:trim} 
{dede:trim}<select(.*)</select>{/dede:trim}
Copy after login

The following is the code for filtering "video"

{dede:trim}<embed(.*)>{/dede:trim} 
{dede:trim}</embed>{/dede:trim} 
{dede:trim}<param(.*)</param>{/dede:trim} 
{dede:trim}<object(.*)</object>{/dede:trim}
Copy after login

The above is the detailed content of What are the DEDE collection filtering rules?. 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