2008-01-27 01:54:41 +00:00
|
|
|
<?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.
|
2008-12-06 07:28:20 +00:00
|
|
|
*
|
2013-02-18 00:04:08 +00:00
|
|
|
* @version 4.5.0
|
2008-12-06 07:28:20 +00:00
|
|
|
*
|
2008-01-27 01:54:41 +00:00
|
|
|
* @warning
|
|
|
|
* You must *not* include any other HTML Purifier files before this file,
|
|
|
|
* because 'require' not 'require_once' is used.
|
2008-12-06 07:28:20 +00:00
|
|
|
*
|
2008-01-27 01:54:41 +00:00
|
|
|
* @warning
|
|
|
|
* This file requires that the include path contains the HTML Purifier
|
|
|
|
* library directory; this is not auto-set.
|
|
|
|
*/
|
|
|
|
|
|
|
|
require 'HTMLPurifier.php';
|
2013-10-20 22:05:11 +00:00
|
|
|
require 'HTMLPurifier/Arborize.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/AttrCollections.php';
|
|
|
|
require 'HTMLPurifier/AttrDef.php';
|
|
|
|
require 'HTMLPurifier/AttrTransform.php';
|
|
|
|
require 'HTMLPurifier/AttrTypes.php';
|
|
|
|
require 'HTMLPurifier/AttrValidator.php';
|
2008-02-17 18:21:45 +00:00
|
|
|
require 'HTMLPurifier/Bootstrap.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/Definition.php';
|
|
|
|
require 'HTMLPurifier/CSSDefinition.php';
|
|
|
|
require 'HTMLPurifier/ChildDef.php';
|
|
|
|
require 'HTMLPurifier/Config.php';
|
2008-02-10 21:34:52 +00:00
|
|
|
require 'HTMLPurifier/ConfigSchema.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
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/ErrorCollector.php';
|
2008-09-15 23:08:58 +00:00
|
|
|
require 'HTMLPurifier/ErrorStruct.php';
|
2008-03-01 17:06:23 +00:00
|
|
|
require 'HTMLPurifier/Exception.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
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';
|
2008-05-20 01:31:51 +00:00
|
|
|
require 'HTMLPurifier/Length.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/Lexer.php';
|
2013-10-20 22:05:11 +00:00
|
|
|
require 'HTMLPurifier/Node.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/PercentEncoder.php';
|
2008-12-06 07:28:20 +00:00
|
|
|
require 'HTMLPurifier/PropertyList.php';
|
|
|
|
require 'HTMLPurifier/PropertyListIterator.php';
|
2013-09-17 07:48:42 +00:00
|
|
|
require 'HTMLPurifier/Queue.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/Strategy.php';
|
2008-03-22 19:30:37 +00:00
|
|
|
require 'HTMLPurifier/StringHash.php';
|
|
|
|
require 'HTMLPurifier/StringHashParser.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
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';
|
2008-05-20 01:31:51 +00:00
|
|
|
require 'HTMLPurifier/UnitConverter.php';
|
2008-03-04 15:06:00 +00:00
|
|
|
require 'HTMLPurifier/VarParser.php';
|
|
|
|
require 'HTMLPurifier/VarParserException.php';
|
2013-10-13 08:15:55 +00:00
|
|
|
require 'HTMLPurifier/Zipper.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/AttrDef/CSS.php';
|
2011-12-30 14:56:44 +00:00
|
|
|
require 'HTMLPurifier/AttrDef/Clone.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/AttrDef/Enum.php';
|
|
|
|
require 'HTMLPurifier/AttrDef/Integer.php';
|
|
|
|
require 'HTMLPurifier/AttrDef/Lang.php';
|
2008-05-21 01:56:48 +00:00
|
|
|
require 'HTMLPurifier/AttrDef/Switch.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
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';
|
2008-04-22 22:28:54 +00:00
|
|
|
require 'HTMLPurifier/AttrDef/CSS/DenyElementDecorator.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/AttrDef/CSS/Filter.php';
|
|
|
|
require 'HTMLPurifier/AttrDef/CSS/Font.php';
|
|
|
|
require 'HTMLPurifier/AttrDef/CSS/FontFamily.php';
|
2012-01-14 08:08:02 +00:00
|
|
|
require 'HTMLPurifier/AttrDef/CSS/Ident.php';
|
2008-02-25 21:58:17 +00:00
|
|
|
require 'HTMLPurifier/AttrDef/CSS/ImportantDecorator.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
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';
|
2009-05-26 01:55:44 +00:00
|
|
|
require 'HTMLPurifier/AttrDef/HTML/Nmtokens.php';
|
|
|
|
require 'HTMLPurifier/AttrDef/HTML/Class.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
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/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';
|
2008-09-28 01:19:35 +00:00
|
|
|
require 'HTMLPurifier/AttrTransform/Background.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
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';
|
2008-08-15 22:57:44 +00:00
|
|
|
require 'HTMLPurifier/AttrTransform/Input.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/AttrTransform/Lang.php';
|
|
|
|
require 'HTMLPurifier/AttrTransform/Length.php';
|
|
|
|
require 'HTMLPurifier/AttrTransform/Name.php';
|
2009-02-21 07:58:30 +00:00
|
|
|
require 'HTMLPurifier/AttrTransform/NameSync.php';
|
2010-09-28 16:01:57 +00:00
|
|
|
require 'HTMLPurifier/AttrTransform/Nofollow.php';
|
2008-06-10 01:18:03 +00:00
|
|
|
require 'HTMLPurifier/AttrTransform/SafeEmbed.php';
|
2008-06-10 00:13:44 +00:00
|
|
|
require 'HTMLPurifier/AttrTransform/SafeObject.php';
|
|
|
|
require 'HTMLPurifier/AttrTransform/SafeParam.php';
|
2008-04-28 01:35:07 +00:00
|
|
|
require 'HTMLPurifier/AttrTransform/ScriptRequired.php';
|
2011-12-25 09:27:25 +00:00
|
|
|
require 'HTMLPurifier/AttrTransform/TargetBlank.php';
|
2008-08-15 22:57:44 +00:00
|
|
|
require 'HTMLPurifier/AttrTransform/Textarea.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/ChildDef/Chameleon.php';
|
|
|
|
require 'HTMLPurifier/ChildDef/Custom.php';
|
|
|
|
require 'HTMLPurifier/ChildDef/Empty.php';
|
2011-12-26 06:00:34 +00:00
|
|
|
require 'HTMLPurifier/ChildDef/List.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
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';
|
2008-08-15 22:57:44 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Forms.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Hypertext.php';
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Iframe.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Image.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/Legacy.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/List.php';
|
2008-06-27 19:44:27 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Name.php';
|
2010-09-28 16:01:57 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Nofollow.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/Object.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/Presentation.php';
|
2008-02-20 01:28:19 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Proprietary.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Ruby.php';
|
2008-06-10 01:18:03 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/SafeEmbed.php';
|
2008-06-10 00:13:44 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/SafeObject.php';
|
2012-04-27 21:44:49 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/SafeScripting.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Scripting.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/StyleAttribute.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/Tables.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/Target.php';
|
2011-12-25 09:27:25 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/TargetBlank.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Text.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/Tidy.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/XMLCommonAttributes.php';
|
2008-06-27 19:44:27 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Tidy/Name.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Tidy/Proprietary.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php';
|
2008-02-10 21:34:52 +00:00
|
|
|
require 'HTMLPurifier/HTMLModule/Tidy/Strict.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/Tidy/Transitional.php';
|
|
|
|
require 'HTMLPurifier/HTMLModule/Tidy/XHTML.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/Injector/AutoParagraph.php';
|
2008-10-23 21:11:29 +00:00
|
|
|
require 'HTMLPurifier/Injector/DisplayLinkURI.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/Injector/Linkify.php';
|
|
|
|
require 'HTMLPurifier/Injector/PurifierLinkify.php';
|
2008-06-27 20:09:14 +00:00
|
|
|
require 'HTMLPurifier/Injector/RemoveEmpty.php';
|
2009-08-28 00:42:09 +00:00
|
|
|
require 'HTMLPurifier/Injector/RemoveSpansWithoutAttributes.php';
|
2008-06-10 00:13:44 +00:00
|
|
|
require 'HTMLPurifier/Injector/SafeObject.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/Lexer/DOMLex.php';
|
|
|
|
require 'HTMLPurifier/Lexer/DirectLex.php';
|
2013-10-20 22:05:11 +00:00
|
|
|
require 'HTMLPurifier/Node/Comment.php';
|
|
|
|
require 'HTMLPurifier/Node/Element.php';
|
|
|
|
require 'HTMLPurifier/Node/Text.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
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';
|
2008-02-10 22:47:08 +00:00
|
|
|
require 'HTMLPurifier/Token/Comment.php';
|
|
|
|
require 'HTMLPurifier/Token/Tag.php';
|
|
|
|
require 'HTMLPurifier/Token/Empty.php';
|
|
|
|
require 'HTMLPurifier/Token/End.php';
|
|
|
|
require 'HTMLPurifier/Token/Start.php';
|
|
|
|
require 'HTMLPurifier/Token/Text.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/URIFilter/DisableExternal.php';
|
|
|
|
require 'HTMLPurifier/URIFilter/DisableExternalResources.php';
|
2010-09-04 06:59:03 +00:00
|
|
|
require 'HTMLPurifier/URIFilter/DisableResources.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
require 'HTMLPurifier/URIFilter/HostBlacklist.php';
|
|
|
|
require 'HTMLPurifier/URIFilter/MakeAbsolute.php';
|
2008-06-18 03:29:27 +00:00
|
|
|
require 'HTMLPurifier/URIFilter/Munge.php';
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
require 'HTMLPurifier/URIFilter/SafeIframe.php';
|
2010-03-08 02:14:44 +00:00
|
|
|
require 'HTMLPurifier/URIScheme/data.php';
|
2010-09-10 20:51:55 +00:00
|
|
|
require 'HTMLPurifier/URIScheme/file.php';
|
2008-01-27 01:54:41 +00:00
|
|
|
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';
|
2008-03-05 03:51:09 +00:00
|
|
|
require 'HTMLPurifier/VarParser/Flexible.php';
|
2008-03-05 05:03:01 +00:00
|
|
|
require 'HTMLPurifier/VarParser/Native.php';
|