From acccafe3daee1c94064202d38fa244bd5a15c2e7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 28 Oct 2012 12:21:21 +0400 Subject: replace htmlpurifier with htmlawed --- .../HTMLPurifier/ConfigSchema/Interchange.php | 42 ---------------------- 1 file changed, 42 deletions(-) delete mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php (limited to 'lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php') diff --git a/lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php b/lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php deleted file mode 100644 index 91a5aa730..000000000 --- a/lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php +++ /dev/null @@ -1,42 +0,0 @@ - array(directive info) - */ - public $directives = array(); - - /** - * Adds a directive array to $directives - */ - public function addDirective($directive) { - if (isset($this->directives[$i = $directive->id->toString()])) { - throw new HTMLPurifier_ConfigSchema_Exception("Cannot redefine directive '$i'"); - } - $this->directives[$i] = $directive; - } - - /** - * Convenience function to perform standard validation. Throws exception - * on failed validation. - */ - public function validate() { - $validator = new HTMLPurifier_ConfigSchema_Validator(); - return $validator->validate($this); - } - -} - -// vim: et sw=4 sts=4 -- cgit v1.2.3-54-g00ecf