Refactor encoding and entity specific processing to HTMLPurifier_Encoder. We also...
commit1de30882762df9e8c7f618a5819a0cbeec96b84e
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Tue, 29 Aug 2006 19:36:40 +0000 (29 19:36 +0000)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Tue, 29 Aug 2006 19:36:40 +0000 (29 19:36 +0000)
tree4369efa616f22cca7c2984b7bfaa0b69674858df
parent55503744eec651f31dda4f0065d4a3a575c882c5
Refactor encoding and entity specific processing to HTMLPurifier_Encoder.  We also need to refactor the escaping to this class too.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@339 48356398-32a2-884e-a903-53898d9a118a
12 files changed:
docs/examples/demo.php
library/HTMLPurifier.php
library/HTMLPurifier/Encoder.php [copied from library/HTMLPurifier/Lexer.php with 71% similarity]
library/HTMLPurifier/Lexer.php
library/HTMLPurifier/Lexer/DOMLex.php
library/HTMLPurifier/Lexer/DirectLex.php
library/HTMLPurifier/Lexer/PEARSax3.php
smoketests/common.php
tests/HTMLPurifier/EncoderTest.php [new file with mode: 0644]
tests/HTMLPurifier/Lexer/DirectLexTest.php
tests/HTMLPurifier/LexerTest.php
tests/index.php