3 * Message filter module interface.
5 * @author Ant P. <xmpp:ant@specialops.ath.cx>
7 * @license http://specialops.ath.cx/repos/so2/trunk/COPYING
10 // /* Do normal XHTML checking and nl2br (default) */
11 const HTML_FILTER
= 0x0;
12 /* Don't automatically add linebreaks */
14 // Plaintext or full-html stuff should be handled by the filter module
19 * @param string $input HTML string to check, usually a $_POST value
20 * @param int $formatting Formatting flags to use
22 function __construct($input, $formatting = null);
25 * Check input syntax, if invalid throw an InvalidInputException saying why.
30 * Get processed input back.
32 * @return null|string Null if an unrecoverable error occured