Secure PHP HTML parser and filter is a PHP package that can be used to parse and filter out insecure HTML tags and CSS styles. It comes with a general purpose markup parser class that can parse any type of markup documents similar to HTML, XML, and DTD files. It also includes several other classes that can be chained together to retrieve the document token elements returned by the main markup parser class and filter the document elements in a useful way. The markup validator filter class validates a document against a DTD, eventually removing invalid tags and attributes. The safe HTML filter class uses several white lists to process HTML tags and data returned by the markup validator class and discards potentially harmful HTML tags and CSS that could be used to perform cross-site scripting (XSS) or cross-site request forgery (CSRF) security attacks. The filtered HTML tokens can be reassembled to return a well-formed and secure HTML document. The HTML links filter class can extract the links contained in an HTML document. The DTD parser and CSS parser are utility classes used by the other classes.
PHP Emoticon Parser can replace emoticon text with HTML image tags. It can search for emoticon text characters in a given text string and replace them with equivalent emoticon images. The emoticon text and image mappings are defined in a separate script that maps emoticon names to the different equivalent representations for emoticon text symbols.
Form Data Processing is a PHP class that can be used to generate SQL queries from HTTP request values. It processes the HTTP GET or POST request values and generates SQL INSERT or UPDATE statements mapping request value names to table fields and request values to table field values. It can exclude variables from an array or regular expression and add custom values to use in the query. It can also combine request values.
ApPHP Tabs is a simple PHP script that generates a multi-level tab menu control that consists of nice-looking tabs. It takes you only a few seconds to add or remove a tab. You can use the script to organize your site navigation system. It was written according to object-oriented principles and is very simple to install, implement, use, and modify. It features a multi-level tabs hierarchy, an infinite amount of levels, the ability to enable/disable tabs, embedded CSS templates, and simple and readable code for developers.