mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 23:28:42 +00:00
[3.1.0] The bulk of autoload support added
- Add FSTools:globr() - require_once removed from all files - HTMLPurifier.autoload.php added to register autoload handler - Removed redundant chdir in maintenance script - Modified standalone to use HTMLPurifier.includes.php for including stuff - Added maintenance script remove-require-once.php which we used once and should never use again git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1516 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
81a4cf6a14
commit
522c8ed7c2
10
NEWS
10
NEWS
@ -10,13 +10,21 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
==========================
|
==========================
|
||||||
|
|
||||||
3.1.0, unknown release date
|
3.1.0, unknown release date
|
||||||
! Autoload support added
|
# Autoload support added. Internal require_once's removed in favor of an
|
||||||
|
explicit require list or autoloading. To use HTML Purifier,
|
||||||
|
you must now either use HTMLPurifier.auto.php
|
||||||
|
or HTMLPurifier.includes.php; setting the include path and including
|
||||||
|
HTMLPurifier.php is insufficient--in such cases include HTMLPurifier.autoload.php
|
||||||
|
as well to register our autoload handler (or modify your autoload function
|
||||||
|
to check HTMLPurifier_Bootstrap::getPath($class)).
|
||||||
- Autoclose now operates iteratively, i.e. <span><span><div> now has
|
- Autoclose now operates iteratively, i.e. <span><span><div> now has
|
||||||
both span tags closed.
|
both span tags closed.
|
||||||
. Plugins now get their own changelogs according to project conventions.
|
. Plugins now get their own changelogs according to project conventions.
|
||||||
. Convert tokens to use instanceof, reducing memory footprint and
|
. Convert tokens to use instanceof, reducing memory footprint and
|
||||||
improving comparison speed.
|
improving comparison speed.
|
||||||
. Dry runs now supported in SimpleTest; testing facilities improved
|
. Dry runs now supported in SimpleTest; testing facilities improved
|
||||||
|
. Bootstrap class added for handling autoloading functionality
|
||||||
|
. Implemented recursive glob at FSTools->globr
|
||||||
|
|
||||||
3.0.0, released 2008-01-06
|
3.0.0, released 2008-01-06
|
||||||
# HTML Purifier is PHP 5 only! The 2.1.x branch will be maintained
|
# HTML Purifier is PHP 5 only! The 2.1.x branch will be maintained
|
||||||
|
3
TODO
3
TODO
@ -13,9 +13,12 @@ afraid to cast your vote for the next feature to be implemented!
|
|||||||
|
|
||||||
IMPORTANT
|
IMPORTANT
|
||||||
- Put our new configuration thing into effect
|
- Put our new configuration thing into effect
|
||||||
|
- Get rid of the manual includes in ConfigSchema (this means changing
|
||||||
|
generate-includes.php too)
|
||||||
- Get everything into configuration objects (filters, I'm looking at you)
|
- Get everything into configuration objects (filters, I'm looking at you)
|
||||||
- Factor demo.php into a set of Printer classes, and then create a stub
|
- Factor demo.php into a set of Printer classes, and then create a stub
|
||||||
file for users here
|
file for users here
|
||||||
|
- Test HTMLPurifier.auto.php
|
||||||
|
|
||||||
3.1 release [Error'ed]
|
3.1 release [Error'ed]
|
||||||
# Error logging for filtering/cleanup procedures
|
# Error logging for filtering/cleanup procedures
|
||||||
|
@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a stub include that automatically configures the include path.
|
* This is a stub include that automatically configures the include path.
|
||||||
|
* @warning This file is currently broken.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path() );
|
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path() );
|
||||||
require_once 'HTMLPurifier.php';
|
require_once 'HTMLPurifier/Bootstrap.php';
|
||||||
require_once 'HTMLPurifier.autoload.php';
|
require_once 'HTMLPurifier.autoload.php';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (function_exists('spl_autoload_register')) {
|
if (function_exists('spl_autoload_register')) {
|
||||||
spl_autoload_register(array('HTMLPurifier', 'autoload'));
|
spl_autoload_register(array('HTMLPurifier_Bootstrap', 'autoload'));
|
||||||
} elseif (!function_exists('__autoload')) {
|
} elseif (!function_exists('__autoload')) {
|
||||||
function __autoload($class) {return HTMLPurifier::autoload($class);}
|
function __autoload($class) {return HTMLPurifier_Bootstrap::autoload($class);}
|
||||||
}
|
}
|
||||||
|
171
library/HTMLPurifier.includes.php
Normal file
171
library/HTMLPurifier.includes.php
Normal file
@ -0,0 +1,171 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* This file was auto-generated by generate-includes.php and includes all of
|
||||||
|
* the core files required by HTML Purifier. Use this if performance is a
|
||||||
|
* primary concern and you are using an opcode cache. PLEASE DO NOT EDIT THIS
|
||||||
|
* FILE, changes will be overwritten the next time the script is run.
|
||||||
|
*
|
||||||
|
* @version 3.0.0
|
||||||
|
*
|
||||||
|
* @warning
|
||||||
|
* You must *not* include any other HTML Purifier files before this file,
|
||||||
|
* because 'require' not 'require_once' is used.
|
||||||
|
*
|
||||||
|
* @warning
|
||||||
|
* This file requires that the include path contains the HTML Purifier
|
||||||
|
* library directory; this is not auto-set.
|
||||||
|
*/
|
||||||
|
|
||||||
|
require 'HTMLPurifier/ConfigSchema.php';
|
||||||
|
require 'HTMLPurifier.php';
|
||||||
|
require 'HTMLPurifier/AttrCollections.php';
|
||||||
|
require 'HTMLPurifier/AttrDef.php';
|
||||||
|
require 'HTMLPurifier/AttrTransform.php';
|
||||||
|
require 'HTMLPurifier/AttrTypes.php';
|
||||||
|
require 'HTMLPurifier/AttrValidator.php';
|
||||||
|
require 'HTMLPurifier/Bootstrap.php';
|
||||||
|
require 'HTMLPurifier/Definition.php';
|
||||||
|
require 'HTMLPurifier/CSSDefinition.php';
|
||||||
|
require 'HTMLPurifier/ChildDef.php';
|
||||||
|
require 'HTMLPurifier/Config.php';
|
||||||
|
require 'HTMLPurifier/ContentSets.php';
|
||||||
|
require 'HTMLPurifier/Context.php';
|
||||||
|
require 'HTMLPurifier/DefinitionCache.php';
|
||||||
|
require 'HTMLPurifier/DefinitionCacheFactory.php';
|
||||||
|
require 'HTMLPurifier/Doctype.php';
|
||||||
|
require 'HTMLPurifier/DoctypeRegistry.php';
|
||||||
|
require 'HTMLPurifier/ElementDef.php';
|
||||||
|
require 'HTMLPurifier/Encoder.php';
|
||||||
|
require 'HTMLPurifier/EntityLookup.php';
|
||||||
|
require 'HTMLPurifier/EntityParser.php';
|
||||||
|
require 'HTMLPurifier/Error.php';
|
||||||
|
require 'HTMLPurifier/ErrorCollector.php';
|
||||||
|
require 'HTMLPurifier/Filter.php';
|
||||||
|
require 'HTMLPurifier/Generator.php';
|
||||||
|
require 'HTMLPurifier/HTMLDefinition.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule.php';
|
||||||
|
require 'HTMLPurifier/HTMLModuleManager.php';
|
||||||
|
require 'HTMLPurifier/IDAccumulator.php';
|
||||||
|
require 'HTMLPurifier/Injector.php';
|
||||||
|
require 'HTMLPurifier/Language.php';
|
||||||
|
require 'HTMLPurifier/LanguageFactory.php';
|
||||||
|
require 'HTMLPurifier/Lexer.php';
|
||||||
|
require 'HTMLPurifier/PercentEncoder.php';
|
||||||
|
require 'HTMLPurifier/Printer.php';
|
||||||
|
require 'HTMLPurifier/Strategy.php';
|
||||||
|
require 'HTMLPurifier/TagTransform.php';
|
||||||
|
require 'HTMLPurifier/Token.php';
|
||||||
|
require 'HTMLPurifier/TokenFactory.php';
|
||||||
|
require 'HTMLPurifier/URI.php';
|
||||||
|
require 'HTMLPurifier/URIDefinition.php';
|
||||||
|
require 'HTMLPurifier/URIFilter.php';
|
||||||
|
require 'HTMLPurifier/URIParser.php';
|
||||||
|
require 'HTMLPurifier/URIScheme.php';
|
||||||
|
require 'HTMLPurifier/URISchemeRegistry.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/Enum.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/Integer.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/Lang.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/Text.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/URI.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/Number.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/AlphaValue.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/Background.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/BackgroundPosition.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/Border.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/Color.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/Composite.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/Filter.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/Font.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/FontFamily.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/Length.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/ListStyle.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/Multiple.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/Percentage.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/TextDecoration.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/CSS/URI.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/HTML/Bool.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/HTML/Color.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/HTML/FrameTarget.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/HTML/ID.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/HTML/Pixels.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/HTML/Length.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/HTML/LinkTypes.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/HTML/MultiLength.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/HTML/Nmtokens.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/URI/Email.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/URI/Host.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/URI/IPv4.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/URI/IPv6.php';
|
||||||
|
require 'HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php';
|
||||||
|
require 'HTMLPurifier/AttrTransform/BdoDir.php';
|
||||||
|
require 'HTMLPurifier/AttrTransform/BgColor.php';
|
||||||
|
require 'HTMLPurifier/AttrTransform/BoolToCSS.php';
|
||||||
|
require 'HTMLPurifier/AttrTransform/Border.php';
|
||||||
|
require 'HTMLPurifier/AttrTransform/EnumToCSS.php';
|
||||||
|
require 'HTMLPurifier/AttrTransform/ImgRequired.php';
|
||||||
|
require 'HTMLPurifier/AttrTransform/ImgSpace.php';
|
||||||
|
require 'HTMLPurifier/AttrTransform/Lang.php';
|
||||||
|
require 'HTMLPurifier/AttrTransform/Length.php';
|
||||||
|
require 'HTMLPurifier/AttrTransform/Name.php';
|
||||||
|
require 'HTMLPurifier/ChildDef/Chameleon.php';
|
||||||
|
require 'HTMLPurifier/ChildDef/Custom.php';
|
||||||
|
require 'HTMLPurifier/ChildDef/Empty.php';
|
||||||
|
require 'HTMLPurifier/ChildDef/Required.php';
|
||||||
|
require 'HTMLPurifier/ChildDef/Optional.php';
|
||||||
|
require 'HTMLPurifier/ChildDef/StrictBlockquote.php';
|
||||||
|
require 'HTMLPurifier/ChildDef/Table.php';
|
||||||
|
require 'HTMLPurifier/DefinitionCache/Decorator.php';
|
||||||
|
require 'HTMLPurifier/DefinitionCache/Null.php';
|
||||||
|
require 'HTMLPurifier/DefinitionCache/Serializer.php';
|
||||||
|
require 'HTMLPurifier/DefinitionCache/Decorator/Cleanup.php';
|
||||||
|
require 'HTMLPurifier/DefinitionCache/Decorator/Memory.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Bdo.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/CommonAttributes.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Edit.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Hypertext.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Image.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Legacy.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/List.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Object.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Presentation.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Ruby.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Scripting.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/StyleAttribute.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Tables.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Target.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Text.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Tidy.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/XMLCommonAttributes.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Tidy/Proprietary.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Tidy/XHTML.php';
|
||||||
|
require 'HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php';
|
||||||
|
require 'HTMLPurifier/Injector/AutoParagraph.php';
|
||||||
|
require 'HTMLPurifier/Injector/Linkify.php';
|
||||||
|
require 'HTMLPurifier/Injector/PurifierLinkify.php';
|
||||||
|
require 'HTMLPurifier/Lexer/DOMLex.php';
|
||||||
|
require 'HTMLPurifier/Lexer/DirectLex.php';
|
||||||
|
require 'HTMLPurifier/Printer/CSSDefinition.php';
|
||||||
|
require 'HTMLPurifier/Printer/ConfigForm.php';
|
||||||
|
require 'HTMLPurifier/Printer/HTMLDefinition.php';
|
||||||
|
require 'HTMLPurifier/Strategy/Composite.php';
|
||||||
|
require 'HTMLPurifier/Strategy/Core.php';
|
||||||
|
require 'HTMLPurifier/Strategy/FixNesting.php';
|
||||||
|
require 'HTMLPurifier/Strategy/MakeWellFormed.php';
|
||||||
|
require 'HTMLPurifier/Strategy/RemoveForeignElements.php';
|
||||||
|
require 'HTMLPurifier/Strategy/ValidateAttributes.php';
|
||||||
|
require 'HTMLPurifier/TagTransform/Font.php';
|
||||||
|
require 'HTMLPurifier/TagTransform/Simple.php';
|
||||||
|
require 'HTMLPurifier/URIFilter/DisableExternal.php';
|
||||||
|
require 'HTMLPurifier/URIFilter/DisableExternalResources.php';
|
||||||
|
require 'HTMLPurifier/URIFilter/HostBlacklist.php';
|
||||||
|
require 'HTMLPurifier/URIFilter/MakeAbsolute.php';
|
||||||
|
require 'HTMLPurifier/URIScheme/ftp.php';
|
||||||
|
require 'HTMLPurifier/URIScheme/http.php';
|
||||||
|
require 'HTMLPurifier/URIScheme/https.php';
|
||||||
|
require 'HTMLPurifier/URIScheme/mailto.php';
|
||||||
|
require 'HTMLPurifier/URIScheme/news.php';
|
||||||
|
require 'HTMLPurifier/URIScheme/nntp.php';
|
@ -43,18 +43,6 @@
|
|||||||
define('HTMLPURIFIER_PREFIX', dirname(__FILE__));
|
define('HTMLPURIFIER_PREFIX', dirname(__FILE__));
|
||||||
|
|
||||||
// every class has an undocumented dependency to these, must be included!
|
// every class has an undocumented dependency to these, must be included!
|
||||||
require_once 'HTMLPurifier/ConfigSchema.php'; // fatal errors if not included
|
|
||||||
require_once 'HTMLPurifier/Config.php';
|
|
||||||
require_once 'HTMLPurifier/Context.php';
|
|
||||||
|
|
||||||
require_once 'HTMLPurifier/Lexer.php';
|
|
||||||
require_once 'HTMLPurifier/Generator.php';
|
|
||||||
require_once 'HTMLPurifier/Strategy/Core.php';
|
|
||||||
require_once 'HTMLPurifier/Encoder.php';
|
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ErrorCollector.php';
|
|
||||||
require_once 'HTMLPurifier/LanguageFactory.php';
|
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
'Core', 'CollectErrors', false, 'bool', '
|
'Core', 'CollectErrors', false, 'bool', '
|
||||||
Whether or not to collect errors found while filtering the document. This
|
Whether or not to collect errors found while filtering the document. This
|
||||||
@ -227,28 +215,4 @@ class HTMLPurifier
|
|||||||
return $htmlpurifier;
|
return $htmlpurifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Autoload function for HTML Purifier
|
|
||||||
* @param $class Class to load
|
|
||||||
*/
|
|
||||||
public static function autoload($class) {
|
|
||||||
$file = HTMLPurifier::getPath($class);
|
|
||||||
if (!$file) return false;
|
|
||||||
require_once $file;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the path for a specific class.
|
|
||||||
*/
|
|
||||||
public static function getPath($class) {
|
|
||||||
if (strncmp('HTMLPurifier', $class, 12) !== 0) return false;
|
|
||||||
if (strncmp('HTMLPurifier_Language_', $class, 22) === 0) {
|
|
||||||
$code = str_replace('_', '-', substr($class, 22));
|
|
||||||
return 'HTMLPurifier/Language/classes/' . $code . '.php';
|
|
||||||
}
|
|
||||||
return str_replace('_', '/', $class) . '.php';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTypes.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines common attribute collections that modules reference
|
* Defines common attribute collections that modules reference
|
||||||
*/
|
*/
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/CSSDefinition.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates the HTML attribute style, otherwise known as CSS.
|
* Validates the HTML attribute style, otherwise known as CSS.
|
||||||
* @note We don't implement the whole CSS specification, so it might be
|
* @note We don't implement the whole CSS specification, so it might be
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Number.php';
|
|
||||||
|
|
||||||
class HTMLPurifier_AttrDef_CSS_AlphaValue extends HTMLPurifier_AttrDef_CSS_Number
|
class HTMLPurifier_AttrDef_CSS_AlphaValue extends HTMLPurifier_AttrDef_CSS_Number
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/CSSDefinition.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates shorthand CSS property background.
|
* Validates shorthand CSS property background.
|
||||||
* @warning Does not support url tokens that have internal spaces.
|
* @warning Does not support url tokens that have internal spaces.
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Length.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Percentage.php';
|
|
||||||
|
|
||||||
/* W3C says:
|
/* W3C says:
|
||||||
[ // adjective and number must be in correct order, even if
|
[ // adjective and number must be in correct order, even if
|
||||||
// you could switch them without introducing ambiguity.
|
// you could switch them without introducing ambiguity.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates the border property as defined by CSS.
|
* Validates the border property as defined by CSS.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
'Core', 'ColorKeywords', array(
|
'Core', 'ColorKeywords', array(
|
||||||
'maroon' => '#800000',
|
'maroon' => '#800000',
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/Integer.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Microsoft's proprietary filter: CSS property
|
* Microsoft's proprietary filter: CSS property
|
||||||
* @note Currently supports the alpha filter. In the future, this will
|
* @note Currently supports the alpha filter. In the future, this will
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates shorthand CSS property font.
|
* Validates shorthand CSS property font.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
// whitelisting allowed fonts would be nice
|
// whitelisting allowed fonts would be nice
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Number.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a Length as defined by CSS.
|
* Represents a Length as defined by CSS.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates shorthand CSS property list-style.
|
* Validates shorthand CSS property list-style.
|
||||||
* @warning Does not support url tokens that have internal spaces.
|
* @warning Does not support url tokens that have internal spaces.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Framework class for strings that involve multiple values.
|
* Framework class for strings that involve multiple values.
|
||||||
*
|
*
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Number.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates a Percentage as defined by the CSS spec.
|
* Validates a Percentage as defined by the CSS spec.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates the value for the CSS property text-decoration
|
* Validates the value for the CSS property text-decoration
|
||||||
* @note This class could be generalized into a version that acts sort of
|
* @note This class could be generalized into a version that acts sort of
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef/URI.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates a URI in CSS syntax, which uses url('http://example.com')
|
* Validates a URI in CSS syntax, which uses url('http://example.com')
|
||||||
* @note While theoretically speaking a URI in a CSS document could
|
* @note While theoretically speaking a URI in a CSS document could
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
// Enum = Enumerated
|
// Enum = Enumerated
|
||||||
/**
|
/**
|
||||||
* Validates a keyword against a list of valid values.
|
* Validates a keyword against a list of valid values.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates a boolean attribute
|
* Validates a boolean attribute
|
||||||
*/
|
*/
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Color.php'; // for %Core.ColorKeywords
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates a color according to the HTML spec.
|
* Validates a color according to the HTML spec.
|
||||||
*/
|
*/
|
||||||
|
@ -11,8 +11,6 @@ HTMLPurifier_ConfigSchema::define(
|
|||||||
'will have to manually enable it (see the module documentation for more details.)'
|
'will have to manually enable it (see the module documentation for more details.)'
|
||||||
);
|
);
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef/Enum.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Special-case enum attribute definition that lazy loads allowed frame targets
|
* Special-case enum attribute definition that lazy loads allowed frame targets
|
||||||
*/
|
*/
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/IDAccumulator.php';
|
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
'Attr', 'EnableID', false, 'bool',
|
'Attr', 'EnableID', false, 'bool',
|
||||||
'Allows the ID attribute in HTML. This is disabled by default '.
|
'Allows the ID attribute in HTML. This is disabled by default '.
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/Pixels.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates the HTML type length (not to be confused with CSS's length).
|
* Validates the HTML type length (not to be confused with CSS's length).
|
||||||
*
|
*
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
'Attr', 'AllowedRel', array(), 'lookup',
|
'Attr', 'AllowedRel', array(), 'lookup',
|
||||||
'List of allowed forward document relationships in the rel attribute. '.
|
'List of allowed forward document relationships in the rel attribute. '.
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/Length.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates a MultiLength as defined by the HTML spec.
|
* Validates a MultiLength as defined by the HTML spec.
|
||||||
*
|
*
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/Config.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates contents based on NMTOKENS attribute type.
|
* Validates contents based on NMTOKENS attribute type.
|
||||||
* @note The only current use for this is the class attribute in HTML
|
* @note The only current use for this is the class attribute in HTML
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates an integer representation of pixels according to the HTML spec.
|
* Validates an integer representation of pixels according to the HTML spec.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates an integer.
|
* Validates an integer.
|
||||||
* @note While this class was modeled off the CSS definition, no currently
|
* @note While this class was modeled off the CSS definition, no currently
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates the HTML attribute lang, effectively a language code.
|
* Validates the HTML attribute lang, effectively a language code.
|
||||||
* @note Built according to RFC 3066, which obsoleted RFC 1766
|
* @note Built according to RFC 3066, which obsoleted RFC 1766
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates arbitrary text according to the HTML spec.
|
* Validates arbitrary text according to the HTML spec.
|
||||||
*/
|
*/
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/URIParser.php';
|
|
||||||
require_once 'HTMLPurifier/URIScheme.php';
|
|
||||||
require_once 'HTMLPurifier/URISchemeRegistry.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/URI/Host.php';
|
|
||||||
require_once 'HTMLPurifier/PercentEncoder.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/URI/Email.php';
|
|
||||||
|
|
||||||
// special case filtering directives
|
// special case filtering directives
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
abstract class HTMLPurifier_AttrDef_URI_Email extends HTMLPurifier_AttrDef
|
abstract class HTMLPurifier_AttrDef_URI_Email extends HTMLPurifier_AttrDef
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -15,4 +13,3 @@ abstract class HTMLPurifier_AttrDef_URI_Email extends HTMLPurifier_AttrDef
|
|||||||
}
|
}
|
||||||
|
|
||||||
// sub-implementations
|
// sub-implementations
|
||||||
require_once 'HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php';
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef/URI/Email.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Primitive email validation class based on the regexp found at
|
* Primitive email validation class based on the regexp found at
|
||||||
* http://www.regular-expressions.info/email.html
|
* http://www.regular-expressions.info/email.html
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/URI/IPv4.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/URI/IPv6.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates a host according to the IPv4, IPv6 and DNS (future) specifications.
|
* Validates a host according to the IPv4, IPv6 and DNS (future) specifications.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates an IPv4 address
|
* Validates an IPv4 address
|
||||||
* @author Feyd @ forums.devnetwork.net (public domain)
|
* @author Feyd @ forums.devnetwork.net (public domain)
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef/URI/IPv4.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates an IPv6 address.
|
* Validates an IPv6 address.
|
||||||
* @author Feyd @ forums.devnetwork.net (public domain)
|
* @author Feyd @ forums.devnetwork.net (public domain)
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTransform.php';
|
|
||||||
|
|
||||||
// this MUST be placed in post, as it assumes that any value in dir is valid
|
// this MUST be placed in post, as it assumes that any value in dir is valid
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTransform.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pre-transform that changes deprecated bgcolor attribute to CSS.
|
* Pre-transform that changes deprecated bgcolor attribute to CSS.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTransform.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pre-transform that changes converts a boolean attribute to fixed CSS
|
* Pre-transform that changes converts a boolean attribute to fixed CSS
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTransform.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pre-transform that changes deprecated border attribute to CSS.
|
* Pre-transform that changes deprecated border attribute to CSS.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTransform.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generic pre-transform that converts an attribute with a fixed number of
|
* Generic pre-transform that converts an attribute with a fixed number of
|
||||||
* values (enumerated) to CSS.
|
* values (enumerated) to CSS.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTransform.php';
|
|
||||||
|
|
||||||
// must be called POST validation
|
// must be called POST validation
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTransform.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pre-transform that changes deprecated hspace and vspace attributes to CSS
|
* Pre-transform that changes deprecated hspace and vspace attributes to CSS
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTransform.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Post-transform that copies lang's value to xml:lang (and vice-versa)
|
* Post-transform that copies lang's value to xml:lang (and vice-versa)
|
||||||
* @note Theoretically speaking, this could be a pre-transform, but putting
|
* @note Theoretically speaking, this could be a pre-transform, but putting
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTransform.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class for handling width/height length attribute transformations to CSS
|
* Class for handling width/height length attribute transformations to CSS
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTransform.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pre-transform that changes deprecated name attribute to ID if necessary
|
* Pre-transform that changes deprecated name attribute to ID if necessary
|
||||||
*/
|
*/
|
||||||
|
@ -1,18 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef/Lang.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/Enum.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/Bool.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/ID.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/Length.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/MultiLength.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/Nmtokens.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/Pixels.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/Color.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/Integer.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/Text.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/URI.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides lookup array of attribute types to HTMLPurifier_AttrDef objects
|
* Provides lookup array of attribute types to HTMLPurifier_AttrDef objects
|
||||||
*/
|
*/
|
||||||
|
36
library/HTMLPurifier/Bootstrap.php
Normal file
36
library/HTMLPurifier/Bootstrap.php
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Bootstrap class that contains meta-functionality for HTML Purifier such as
|
||||||
|
* the autoload function.
|
||||||
|
*
|
||||||
|
* @note
|
||||||
|
* This class may be used without any other files from HTML Purifier.
|
||||||
|
*/
|
||||||
|
class HTMLPurifier_Bootstrap
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Autoload function for HTML Purifier
|
||||||
|
* @param $class Class to load
|
||||||
|
*/
|
||||||
|
public static function autoload($class) {
|
||||||
|
$file = HTMLPurifier_Bootstrap::getPath($class);
|
||||||
|
if (!$file) return false;
|
||||||
|
require_once $file;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the path for a specific class.
|
||||||
|
*/
|
||||||
|
public static function getPath($class) {
|
||||||
|
if (strncmp('HTMLPurifier', $class, 12) !== 0) return false;
|
||||||
|
if (strncmp('HTMLPurifier_Language_', $class, 22) === 0) {
|
||||||
|
$code = str_replace('_', '-', substr($class, 22));
|
||||||
|
return 'HTMLPurifier/Language/classes/' . $code . '.php';
|
||||||
|
}
|
||||||
|
return str_replace('_', '/', $class) . '.php';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,24 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/Definition.php';
|
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/AlphaValue.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Background.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/BackgroundPosition.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Border.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Color.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Composite.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Filter.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Font.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/FontFamily.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Length.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/ListStyle.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Multiple.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/Percentage.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/TextDecoration.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS/URI.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/Enum.php';
|
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
'CSS', 'DefinitionRev', 1, 'int', '
|
'CSS', 'DefinitionRev', 1, 'int', '
|
||||||
<p>
|
<p>
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ChildDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Definition that uses different definitions depending on context.
|
* Definition that uses different definitions depending on context.
|
||||||
*
|
*
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ChildDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom validation class, accepts DTD child definitions
|
* Custom validation class, accepts DTD child definitions
|
||||||
*
|
*
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ChildDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Definition that disallows all elements.
|
* Definition that disallows all elements.
|
||||||
* @warning validateChildren() in this class is actually never called, because
|
* @warning validateChildren() in this class is actually never called, because
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ChildDef/Required.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Definition that allows a set of elements, and allows no children.
|
* Definition that allows a set of elements, and allows no children.
|
||||||
* @note This is a hack to reuse code from HTMLPurifier_ChildDef_Required,
|
* @note This is a hack to reuse code from HTMLPurifier_ChildDef_Required,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ChildDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Definition that allows a set of elements, but disallows empty children.
|
* Definition that allows a set of elements, but disallows empty children.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ChildDef/Required.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Takes the contents of blockquote when in strict and reformats for validation.
|
* Takes the contents of blockquote when in strict and reformats for validation.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ChildDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Definition for tables
|
* Definition for tables
|
||||||
*/
|
*/
|
||||||
|
@ -1,14 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ConfigSchema.php';
|
|
||||||
|
|
||||||
// member variables
|
// member variables
|
||||||
require_once 'HTMLPurifier/HTMLDefinition.php';
|
|
||||||
require_once 'HTMLPurifier/CSSDefinition.php';
|
|
||||||
require_once 'HTMLPurifier/URIDefinition.php';
|
|
||||||
require_once 'HTMLPurifier/Doctype.php';
|
|
||||||
require_once 'HTMLPurifier/DefinitionCacheFactory.php';
|
|
||||||
|
|
||||||
// accomodations for versions earlier than 4.3.10 and 5.0.2
|
// accomodations for versions earlier than 4.3.10 and 5.0.2
|
||||||
// borrowed from PHP_Compat, LGPL licensed, by Aidan Lister <aidan@php.net>
|
// borrowed from PHP_Compat, LGPL licensed, by Aidan Lister <aidan@php.net>
|
||||||
if (!defined('PHP_EOL')) {
|
if (!defined('PHP_EOL')) {
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ConfigDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Structure object containing definition of a directive.
|
* Structure object containing definition of a directive.
|
||||||
* @note This structure does not contain default values
|
* @note This structure does not contain default values
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ConfigDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Structure object describing a directive alias
|
* Structure object describing a directive alias
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ConfigDef.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Structure object describing of a namespace
|
* Structure object describing of a namespace
|
||||||
*/
|
*/
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/Error.php';
|
if (!defined('HTMLPURIFIER_SCHEMA_STRICT')) define('HTMLPURIFIER_SCHEMA_STRICT', false);
|
||||||
|
|
||||||
|
// REMOVE THESE LATER:
|
||||||
require_once 'HTMLPurifier/ConfigDef.php';
|
require_once 'HTMLPurifier/ConfigDef.php';
|
||||||
require_once 'HTMLPurifier/ConfigDef/Namespace.php';
|
|
||||||
require_once 'HTMLPurifier/ConfigDef/Directive.php';
|
require_once 'HTMLPurifier/ConfigDef/Directive.php';
|
||||||
require_once 'HTMLPurifier/ConfigDef/DirectiveAlias.php';
|
require_once 'HTMLPurifier/ConfigDef/DirectiveAlias.php';
|
||||||
|
require_once 'HTMLPurifier/ConfigDef/Namespace.php';
|
||||||
if (!defined('HTMLPURIFIER_SCHEMA_STRICT')) define('HTMLPURIFIER_SCHEMA_STRICT', false);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration definition, defines directives and their defaults.
|
* Configuration definition, defines directives and their defaults.
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// common defs that we'll support by default
|
|
||||||
require_once 'HTMLPurifier/ChildDef.php';
|
|
||||||
require_once 'HTMLPurifier/ChildDef/Empty.php';
|
|
||||||
require_once 'HTMLPurifier/ChildDef/Required.php';
|
|
||||||
require_once 'HTMLPurifier/ChildDef/Optional.php';
|
|
||||||
require_once 'HTMLPurifier/ChildDef/Custom.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Unit test
|
* @todo Unit test
|
||||||
*/
|
*/
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/DefinitionCache/Serializer.php';
|
|
||||||
require_once 'HTMLPurifier/DefinitionCache/Null.php';
|
|
||||||
|
|
||||||
require_once 'HTMLPurifier/DefinitionCache/Decorator.php';
|
|
||||||
require_once 'HTMLPurifier/DefinitionCache/Decorator/Memory.php';
|
|
||||||
require_once 'HTMLPurifier/DefinitionCache/Decorator/Cleanup.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract class representing Definition cache managers that implements
|
* Abstract class representing Definition cache managers that implements
|
||||||
* useful common methods and is a factory.
|
* useful common methods and is a factory.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/DefinitionCache.php';
|
|
||||||
|
|
||||||
class HTMLPurifier_DefinitionCache_Decorator extends HTMLPurifier_DefinitionCache
|
class HTMLPurifier_DefinitionCache_Decorator extends HTMLPurifier_DefinitionCache
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/DefinitionCache/Decorator.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Definition cache decorator class that cleans up the cache
|
* Definition cache decorator class that cleans up the cache
|
||||||
* whenever there is a cache miss.
|
* whenever there is a cache miss.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/DefinitionCache/Decorator.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Definition cache decorator class that saves all cache retrievals
|
* Definition cache decorator class that saves all cache retrievals
|
||||||
* to PHP's memory; good for unit tests or circumstances where
|
* to PHP's memory; good for unit tests or circumstances where
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/DefinitionCache.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Null cache object to use when no caching is on.
|
* Null cache object to use when no caching is on.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/DefinitionCache.php';
|
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
'Cache', 'SerializerPath', null, 'string/null', '
|
'Cache', 'SerializerPath', null, 'string/null', '
|
||||||
<p>
|
<p>
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/DefinitionCache.php';
|
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
'Cache', 'DefinitionImpl', 'Serializer', 'string/null', '
|
'Cache', 'DefinitionImpl', 'Serializer', 'string/null', '
|
||||||
This directive defines which method to use when caching definitions,
|
This directive defines which method to use when caching definitions,
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/Doctype.php';
|
|
||||||
|
|
||||||
// Legacy directives for doctype specification
|
// Legacy directives for doctype specification
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
'HTML', 'Strict', false, 'bool',
|
'HTML', 'Strict', false, 'bool',
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/EntityLookup.php';
|
|
||||||
require_once 'HTMLPurifier/Encoder.php';
|
|
||||||
|
|
||||||
// if want to implement error collecting here, we'll need to use some sort
|
// if want to implement error collecting here, we'll need to use some sort
|
||||||
// of global data (probably trigger_error) because it's impossible to pass
|
// of global data (probably trigger_error) because it's impossible to pass
|
||||||
// $config or $context to the callback functions.
|
// $config or $context to the callback functions.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/Generator.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error collection class that enables HTML Purifier to report HTML
|
* Error collection class that enables HTML Purifier to report HTML
|
||||||
* problems back to the user
|
* problems back to the user
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/Filter.php';
|
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
'Filter', 'ExtractStyleBlocksEscaping', true, 'bool', '
|
'Filter', 'ExtractStyleBlocksEscaping', true, 'bool', '
|
||||||
<p>
|
<p>
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/Filter.php';
|
|
||||||
|
|
||||||
class HTMLPurifier_Filter_YouTube extends HTMLPurifier_Filter
|
class HTMLPurifier_Filter_YouTube extends HTMLPurifier_Filter
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/Definition.php';
|
|
||||||
require_once 'HTMLPurifier/HTMLModuleManager.php';
|
|
||||||
|
|
||||||
// this definition and its modules MUST NOT define configuration directives
|
// this definition and its modules MUST NOT define configuration directives
|
||||||
// outside of the HTML or Attr namespaces
|
// outside of the HTML or Attr namespaces
|
||||||
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
require_once 'HTMLPurifier/AttrTransform/BdoDir.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Bi-directional Text Module, defines elements that
|
* XHTML 1.1 Bi-directional Text Module, defines elements that
|
||||||
* declare directionality of content. Text Extension Module.
|
* declare directionality of content. Text Extension Module.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
|
|
||||||
class HTMLPurifier_HTMLModule_CommonAttributes extends HTMLPurifier_HTMLModule
|
class HTMLPurifier_HTMLModule_CommonAttributes extends HTMLPurifier_HTMLModule
|
||||||
{
|
{
|
||||||
public $name = 'CommonAttributes';
|
public $name = 'CommonAttributes';
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
require_once 'HTMLPurifier/ChildDef/Chameleon.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Edit Module, defines editing-related elements. Text Extension
|
* XHTML 1.1 Edit Module, defines editing-related elements. Text Extension
|
||||||
* Module.
|
* Module.
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/LinkTypes.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
|
* XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
|
||||||
*/
|
*/
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef/URI.php';
|
|
||||||
require_once 'HTMLPurifier/AttrTransform/ImgRequired.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Image Module provides basic image embedding.
|
* XHTML 1.1 Image Module provides basic image embedding.
|
||||||
* @note There is specialized code for removing empty images in
|
* @note There is specialized code for removing empty images in
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/Bool.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Legacy module defines elements that were previously
|
* XHTML 1.1 Legacy module defines elements that were previously
|
||||||
* deprecated.
|
* deprecated.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 List Module, defines list-oriented elements. Core Module.
|
* XHTML 1.1 List Module, defines list-oriented elements. Core Module.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
|
|
||||||
class HTMLPurifier_HTMLModule_NonXMLCommonAttributes extends HTMLPurifier_HTMLModule
|
class HTMLPurifier_HTMLModule_NonXMLCommonAttributes extends HTMLPurifier_HTMLModule
|
||||||
{
|
{
|
||||||
public $name = 'NonXMLCommonAttributes';
|
public $name = 'NonXMLCommonAttributes';
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Object Module, defines elements for generic object inclusion
|
* XHTML 1.1 Object Module, defines elements for generic object inclusion
|
||||||
* @warning Users will commonly use <embed> to cater to legacy browsers: this
|
* @warning Users will commonly use <embed> to cater to legacy browsers: this
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Presentation Module, defines simple presentation-related
|
* XHTML 1.1 Presentation Module, defines simple presentation-related
|
||||||
* markup. Text Extension Module.
|
* markup. Text Extension Module.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Ruby Annotation Module, defines elements that indicate
|
* XHTML 1.1 Ruby Annotation Module, defines elements that indicate
|
||||||
* short runs of text alongside base text for annotation or pronounciation.
|
* short runs of text alongside base text for annotation or pronounciation.
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
require_once 'HTMLPurifier/AttrDef/CSS.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Edit Module, defines editing-related elements. Text Extension
|
* XHTML 1.1 Edit Module, defines editing-related elements. Text Extension
|
||||||
* Module.
|
* Module.
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
require_once 'HTMLPurifier/ChildDef/Table.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Tables Module, fully defines accessible table elements.
|
* XHTML 1.1 Tables Module, fully defines accessible table elements.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrDef/HTML/FrameTarget.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Target Module, defines target attribute in link elements.
|
* XHTML 1.1 Target Module, defines target attribute in link elements.
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XHTML 1.1 Text Module, defines basic text containers. Core Module.
|
* XHTML 1.1 Text Module, defines basic text containers. Core Module.
|
||||||
* @note In the normative XML Schema specification, this module
|
* @note In the normative XML Schema specification, this module
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
|
|
||||||
HTMLPurifier_ConfigSchema::define(
|
HTMLPurifier_ConfigSchema::define(
|
||||||
'HTML', 'TidyLevel', 'medium', 'string', '
|
'HTML', 'TidyLevel', 'medium', 'string', '
|
||||||
<p>General level of cleanliness the Tidy module should enforce.
|
<p>General level of cleanliness the Tidy module should enforce.
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule/Tidy.php';
|
|
||||||
|
|
||||||
class HTMLPurifier_HTMLModule_Tidy_Proprietary extends
|
class HTMLPurifier_HTMLModule_Tidy_Proprietary extends
|
||||||
HTMLPurifier_HTMLModule_Tidy
|
HTMLPurifier_HTMLModule_Tidy
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule/Tidy.php';
|
|
||||||
require_once 'HTMLPurifier/AttrTransform/Lang.php';
|
|
||||||
|
|
||||||
class HTMLPurifier_HTMLModule_Tidy_XHTML extends
|
class HTMLPurifier_HTMLModule_Tidy_XHTML extends
|
||||||
HTMLPurifier_HTMLModule_Tidy
|
HTMLPurifier_HTMLModule_Tidy
|
||||||
{
|
{
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule/Tidy.php';
|
|
||||||
|
|
||||||
require_once 'HTMLPurifier/TagTransform/Simple.php';
|
|
||||||
require_once 'HTMLPurifier/TagTransform/Font.php';
|
|
||||||
|
|
||||||
require_once 'HTMLPurifier/AttrTransform/BgColor.php';
|
|
||||||
require_once 'HTMLPurifier/AttrTransform/BoolToCSS.php';
|
|
||||||
require_once 'HTMLPurifier/AttrTransform/Border.php';
|
|
||||||
require_once 'HTMLPurifier/AttrTransform/Name.php';
|
|
||||||
require_once 'HTMLPurifier/AttrTransform/Length.php';
|
|
||||||
require_once 'HTMLPurifier/AttrTransform/ImgSpace.php';
|
|
||||||
require_once 'HTMLPurifier/AttrTransform/EnumToCSS.php';
|
|
||||||
|
|
||||||
require_once 'HTMLPurifier/ChildDef/StrictBlockquote.php';
|
|
||||||
|
|
||||||
class HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4 extends
|
class HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4 extends
|
||||||
HTMLPurifier_HTMLModule_Tidy
|
HTMLPurifier_HTMLModule_Tidy
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'HTMLPurifier/HTMLModule.php';
|
|
||||||
|
|
||||||
class HTMLPurifier_HTMLModule_XMLCommonAttributes extends HTMLPurifier_HTMLModule
|
class HTMLPurifier_HTMLModule_XMLCommonAttributes extends HTMLPurifier_HTMLModule
|
||||||
{
|
{
|
||||||
public $name = 'XMLCommonAttributes';
|
public $name = 'XMLCommonAttributes';
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user