0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 08:21:52 +00: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
class HTML_Purifier
class HTMLPurifier
{
var $lexer;
var $definition;
var $generator;
function HTML_Purifier() {
$this->lexer = new HTMLPurifier_Lexer();
$this->definition = new PureHTMLDefinition();
$this->generator = new HTMLPurifier_Generator();
function HTMLPurifier() {
$this->lexer = new HTMLPurifier_Lexer();
$this->definition = new PureHTMLDefinition();
$this->generator = new HTMLPurifier_Generator();
}
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 'HTML_Purifier.php';
require_once 'HTMLPurifier.php';
require_once 'Lexer.php';
require_once 'Token.php';
require_once 'PureHTMLDefinition.php';
@ -13,7 +13,7 @@ require_once 'Generator.php';
$test = new GroupTest('HTML_Purifier');
chdir('tests/');
$test->addTestFile('HTML_Purifier.php');
$test->addTestFile('HTMLPurifier.php');
$test->addTestFile('Lexer.php');
//$test->addTestFile('Token.php');
$test->addTestFile('PureHTMLDefinition.php');

View File

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