3 * HTML parser interface
5 * @author Ant P <p@cpi.merseine.nu>
7 * @license http://specialops.ath.cx/repos/so2/trunk/COPYING
10 /* Flags to be passed in the $options parameter */
11 const BREAKS
= 0x1; // add <br/> or paragraphs as appropriate
12 const ESCAPE
= 0x2; // Convert all HTML tags into entities
13 const STRICT
= 0x4; // Attempt to validate HTML
14 const REPAIR
= 0x8; // Attempt to correct broken HTML before doing anything else
19 * @param string $input HTML string to check, usually a $_POST value
20 * @param int $formatting Formatting flags to use
22 function __construct($input, $options);