1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-01-17 14:08:15 +01:00

HTML_Purifier to HTMLPurifier. May want to rethink schematics for this though.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@67 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2006-07-21 23:13:22 +00:00
parent ccebe77e70
commit 1836b73c63
3 changed files with 9 additions and 9 deletions

View File

@ -1,16 +1,16 @@
<?php <?php
class HTML_Purifier class HTMLPurifier
{ {
var $lexer; var $lexer;
var $definition; var $definition;
var $generator; var $generator;
function HTML_Purifier() { function HTMLPurifier() {
$this->lexer = new HTMLPurifier_Lexer(); $this->lexer = new HTMLPurifier_Lexer();
$this->definition = new PureHTMLDefinition(); $this->definition = new PureHTMLDefinition();
$this->generator = new HTMLPurifier_Generator(); $this->generator = new HTMLPurifier_Generator();
} }
function purify($html) { function purify($html) {

View File

@ -4,7 +4,7 @@ load_simpletest(); // includes all relevant simpletest files
require_once 'XML/HTMLSax3.php'; // optional PEAR class require_once 'XML/HTMLSax3.php'; // optional PEAR class
require_once 'HTML_Purifier.php'; require_once 'HTMLPurifier.php';
require_once 'Lexer.php'; require_once 'Lexer.php';
require_once 'Token.php'; require_once 'Token.php';
require_once 'PureHTMLDefinition.php'; require_once 'PureHTMLDefinition.php';
@ -13,7 +13,7 @@ require_once 'Generator.php';
$test = new GroupTest('HTML_Purifier'); $test = new GroupTest('HTML_Purifier');
chdir('tests/'); chdir('tests/');
$test->addTestFile('HTML_Purifier.php'); $test->addTestFile('HTMLPurifier.php');
$test->addTestFile('Lexer.php'); $test->addTestFile('Lexer.php');
//$test->addTestFile('Token.php'); //$test->addTestFile('Token.php');
$test->addTestFile('PureHTMLDefinition.php'); $test->addTestFile('PureHTMLDefinition.php');

View File

@ -1,9 +1,9 @@
<?php <?php
class Test_HTML_Purifier extends UnitTestCase class Test_HTMLPurifier extends UnitTestCase
{ {
function Test_HTML_Purifier() { function Test_HTMLPurifier() {