0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-03-11 17:18:44 +00:00
- Add 1.1.3 section in NEWS
- Replace tabs with four spaces in INSTALL
- Renamed data.txt to entities.ser

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@481 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2006-09-30 20:18:08 +00:00
parent 4d96433c23
commit d660b9018b
5 changed files with 7 additions and 4 deletions

View File

@ -25,7 +25,7 @@ not having either of these extensions.
Simply use: Simply use:
require_once '/path/to/library/HTMLPurifier.auto.php'; require_once '/path/to/library/HTMLPurifier.auto.php';
...and you're good to go. Since HTML Purifier's codebase is fairly ...and you're good to go. Since HTML Purifier's codebase is fairly
large, I recommend only including HTML Purifier when you need it. large, I recommend only including HTML Purifier when you need it.
@ -33,7 +33,7 @@ large, I recommend only including HTML Purifier when you need it.
If you don't like your include_path to be fiddled around with, simply set If you don't like your include_path to be fiddled around with, simply set
HTML Purifier's library/ directory to the include path yourself and then: HTML Purifier's library/ directory to the include path yourself and then:
require_once 'HTMLPurifier.php'; require_once 'HTMLPurifier.php';
Only the contents in the library/ folder are necessary, so you can remove Only the contents in the library/ folder are necessary, so you can remove
everything else when using HTML Purifier in a production environment. everything else when using HTML Purifier in a production environment.

3
NEWS
View File

@ -11,6 +11,9 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
1.2.0, unknown projected release date 1.2.0, unknown projected release date
(feature release) (feature release)
1.1.3, unknown projected release date
(bugfix release, may be dropped if no major bugs are found before features)
1.1.2, released 2006-09-30 1.1.2, released 2006-09-30
! Add HTMLPurifier.auto.php stub file that configures include_path ! Add HTMLPurifier.auto.php stub file that configures include_path
- Documentation updated - Documentation updated

View File

@ -19,7 +19,7 @@ class HTMLPurifier_EntityLookup {
*/ */
function setup($file = false) { function setup($file = false) {
if (!$file) { if (!$file) {
$file = dirname(__FILE__) . '/EntityLookup/data.txt'; $file = dirname(__FILE__) . '/EntityLookup/entities.ser';
} }
$this->table = unserialize(file_get_contents($file)); $this->table = unserialize(file_get_contents($file));
} }

View File

@ -13,7 +13,7 @@ chdir( dirname(__FILE__) );
$entity_dir = '../docs/entities/'; $entity_dir = '../docs/entities/';
// defines the output file for the serialized content. // defines the output file for the serialized content.
$output_file = '../library/HTMLPurifier/EntityLookup/data.txt'; $output_file = '../library/HTMLPurifier/EntityLookup/entities.ser';
// courtesy of a PHP manual comment // courtesy of a PHP manual comment
function unichr($dec) { function unichr($dec) {