2008-06-25 01:10:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* This file was auto-generated by generate-includes.php and includes all of
|
|
|
|
* the core files required by HTML Purifier. This is a convenience stub that
|
|
|
|
* includes all files using dirname(__FILE__) and require_once. 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
|
|
|
*
|
2008-06-25 01:10:51 +00:00
|
|
|
* Changes to include_path are not necessary.
|
|
|
|
*/
|
|
|
|
|
|
|
|
$__dir = dirname(__FILE__);
|
|
|
|
|
|
|
|
require_once $__dir . '/HTMLPurifier.php';
|
2013-10-20 22:05:11 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Arborize.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrCollections.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTypes.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrValidator.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Bootstrap.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Definition.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/CSSDefinition.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/ChildDef.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Config.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/ConfigSchema.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/ContentSets.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Context.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/DefinitionCache.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/DefinitionCacheFactory.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Doctype.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/DoctypeRegistry.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/ElementDef.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Encoder.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/EntityLookup.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/EntityParser.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/ErrorCollector.php';
|
2008-09-15 23:08:58 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/ErrorStruct.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Exception.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Filter.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Generator.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLDefinition.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModuleManager.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/IDAccumulator.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Injector.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Language.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/LanguageFactory.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Length.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Lexer.php';
|
2013-10-20 22:05:11 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Node.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/PercentEncoder.php';
|
2008-12-06 07:28:20 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/PropertyList.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/PropertyListIterator.php';
|
2013-09-17 07:48:42 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Queue.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Strategy.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/StringHash.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/StringHashParser.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/TagTransform.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Token.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/TokenFactory.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URI.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIDefinition.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIFilter.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIParser.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIScheme.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URISchemeRegistry.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/UnitConverter.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/VarParser.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/VarParserException.php';
|
2013-10-13 08:15:55 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Zipper.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS.php';
|
2011-12-30 14:56:44 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/Clone.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/Enum.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/Integer.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/Lang.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/Switch.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/Text.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/URI.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Number.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/AlphaValue.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Background.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Border.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Color.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Composite.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/DenyElementDecorator.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Filter.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Font.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/FontFamily.php';
|
2012-01-14 08:08:02 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Ident.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/ImportantDecorator.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Length.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/ListStyle.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Multiple.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Percentage.php';
|
2024-11-01 03:51:45 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/Ratio.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/TextDecoration.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/CSS/URI.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/Bool.php';
|
2009-05-26 01:55:44 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/Nmtokens.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/Class.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/Color.php';
|
2022-09-18 06:23:57 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/ContentEditable.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/FrameTarget.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/ID.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/Pixels.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/Length.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/LinkTypes.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/HTML/MultiLength.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/URI/Email.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/URI/Host.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/URI/IPv4.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/URI/IPv6.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php';
|
2008-09-28 01:19:35 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/Background.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/BdoDir.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/BgColor.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/BoolToCSS.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/Border.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/EnumToCSS.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/ImgRequired.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/ImgSpace.php';
|
2008-08-15 22:57:44 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/Input.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/Lang.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/Length.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/Name.php';
|
2009-02-21 07:58:30 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/NameSync.php';
|
2010-09-28 16:01:57 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/Nofollow.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/SafeEmbed.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/SafeObject.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/SafeParam.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/ScriptRequired.php';
|
2011-12-25 09:27:25 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/TargetBlank.php';
|
2017-01-13 16:21:24 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/TargetNoopener.php';
|
2017-03-07 07:06:56 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/TargetNoreferrer.php';
|
2008-08-15 22:57:44 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/AttrTransform/Textarea.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/ChildDef/Chameleon.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/ChildDef/Custom.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/ChildDef/Empty.php';
|
2011-12-26 06:00:34 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/ChildDef/List.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/ChildDef/Required.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/ChildDef/Optional.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/ChildDef/StrictBlockquote.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/ChildDef/Table.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/DefinitionCache/Decorator.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/DefinitionCache/Null.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/DefinitionCache/Serializer.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/DefinitionCache/Decorator/Memory.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Bdo.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/CommonAttributes.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Edit.php';
|
2008-08-15 22:57:44 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Forms.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/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_once $__dir . '/HTMLPurifier/HTMLModule/Iframe.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Image.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Legacy.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/List.php';
|
2008-06-27 19:44:27 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Name.php';
|
2010-09-28 16:01:57 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Nofollow.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Object.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Presentation.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Proprietary.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Ruby.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/SafeEmbed.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/SafeObject.php';
|
2012-04-27 21:44:49 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/SafeScripting.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Scripting.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/StyleAttribute.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Tables.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Target.php';
|
2011-12-25 09:27:25 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/TargetBlank.php';
|
2017-01-13 16:21:24 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/TargetNoopener.php';
|
2017-03-07 07:06:56 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/TargetNoreferrer.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Text.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Tidy.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/XMLCommonAttributes.php';
|
2008-06-27 19:44:27 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Tidy/Name.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Tidy/Proprietary.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Tidy/Strict.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Tidy/Transitional.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/HTMLModule/Tidy/XHTML.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Injector/AutoParagraph.php';
|
2008-10-23 21:11:29 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Injector/DisplayLinkURI.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Injector/Linkify.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Injector/PurifierLinkify.php';
|
2008-06-27 20:09:14 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Injector/RemoveEmpty.php';
|
2009-08-28 00:42:09 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Injector/RemoveSpansWithoutAttributes.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Injector/SafeObject.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Lexer/DOMLex.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Lexer/DirectLex.php';
|
2013-10-20 22:05:11 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Node/Comment.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Node/Element.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Node/Text.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/Strategy/Composite.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Strategy/Core.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Strategy/FixNesting.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Strategy/MakeWellFormed.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Strategy/RemoveForeignElements.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Strategy/ValidateAttributes.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/TagTransform/Font.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/TagTransform/Simple.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Token/Comment.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Token/Tag.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Token/Empty.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Token/End.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Token/Start.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/Token/Text.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIFilter/DisableExternal.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIFilter/DisableExternalResources.php';
|
2010-09-04 06:59:03 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/URIFilter/DisableResources.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/URIFilter/HostBlacklist.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIFilter/MakeAbsolute.php';
|
|
|
|
require_once $__dir . '/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_once $__dir . '/HTMLPurifier/URIFilter/SafeIframe.php';
|
2010-03-08 02:14:44 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/URIScheme/data.php';
|
2010-09-10 20:51:55 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/URIScheme/file.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/URIScheme/ftp.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIScheme/http.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIScheme/https.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIScheme/mailto.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIScheme/news.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/URIScheme/nntp.php';
|
2016-06-17 23:39:18 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/URIScheme/tel.php';
|
2008-06-25 01:10:51 +00:00
|
|
|
require_once $__dir . '/HTMLPurifier/VarParser/Flexible.php';
|
|
|
|
require_once $__dir . '/HTMLPurifier/VarParser/Native.php';
|