Special Ops 2.50
[specialops2.git] / lib / iface.HTMLParser.php
blob2a14ef16f44a0abac30c1c1c4c72f5d71dfcc382
1 <?php
2 /**
3 * HTML parser interface
5 * @author Ant P <p@cpi.merseine.nu>
6 * @version 4.0
7 * @license http://specialops.ath.cx/repos/so2/trunk/COPYING
8 */
9 interface HTMLParser {
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
16 /**
17 * Constructor
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);