PHP Classes

Packages of Frédéric Minne

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of Frédéric Minne (2)  >  Mission progress status  >  Reputation  
Picture of Frédéric Minne
Name: Frédéric Minne <contact>
Classes: 2
Country: Belgium Belgium
Age: 46
All time rank: 5621 in Belgium Belgium
Week rank: 195 Up3 in Belgium Belgium Down
All time users: 5318
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Event Driven  
Manage abstract event processing
This package can be used to manage the processing of abstract events that may occuring during the execution of a script.

It implements several abstract classes for processing events and registering event listeners based on the Observer design pattern.

The classes may be extended by scripts to handle application specific concrete event handlers.

  Files folder image HTML Sanitizer  
Remove unsafe tags and attributes from HTML code
This class can be used to remove unsafe tags and attributes from HTML code.

It takes a string with HTML code and strips all the tags that do not make part of a list of safe tags. That list of safe tags is defined as a private class variable. There are some functions to allow usually unsafe tags like script, style, object, embed, etc..

The class can also remove unsafe tag attributes, such as those that define Javascript code to handle events.

The links href attributes also gets special treatment to remove URLs that trigger Javascript code execution and line breaks.


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z