From f45a286b8d62f710b519a98c7d4b75a0c34d5d10 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Jun 2009 13:56:49 +0400 Subject: [PATCH] strip_tags_long: use htmlpurifier to properly reformat html content --- functions.php | 23 +- lib/htmlpurifier/CREDITS | 9 + lib/htmlpurifier/LICENSE | 504 +++ .../library/HTMLPurifier.auto.php | 11 + .../library/HTMLPurifier.autoload.php | 21 + .../library/HTMLPurifier.func.php | 23 + .../library/HTMLPurifier.includes.php | 206 + .../library/HTMLPurifier.kses.php | 30 + .../library/HTMLPurifier.path.php | 11 + lib/htmlpurifier/library/HTMLPurifier.php | 236 + .../library/HTMLPurifier.safe-includes.php | 200 + .../library/HTMLPurifier/AttrCollections.php | 128 + .../library/HTMLPurifier/AttrDef.php | 87 + .../library/HTMLPurifier/AttrDef/CSS.php | 87 + .../HTMLPurifier/AttrDef/CSS/AlphaValue.php | 21 + .../HTMLPurifier/AttrDef/CSS/Background.php | 87 + .../AttrDef/CSS/BackgroundPosition.php | 126 + .../HTMLPurifier/AttrDef/CSS/Border.php | 43 + .../HTMLPurifier/AttrDef/CSS/Color.php | 78 + .../HTMLPurifier/AttrDef/CSS/Composite.php | 38 + .../AttrDef/CSS/DenyElementDecorator.php | 28 + .../HTMLPurifier/AttrDef/CSS/Filter.php | 54 + .../library/HTMLPurifier/AttrDef/CSS/Font.php | 149 + .../HTMLPurifier/AttrDef/CSS/FontFamily.php | 90 + .../AttrDef/CSS/ImportantDecorator.php | 40 + .../HTMLPurifier/AttrDef/CSS/Length.php | 47 + .../HTMLPurifier/AttrDef/CSS/ListStyle.php | 78 + .../HTMLPurifier/AttrDef/CSS/Multiple.php | 58 + .../HTMLPurifier/AttrDef/CSS/Number.php | 69 + .../HTMLPurifier/AttrDef/CSS/Percentage.php | 40 + .../AttrDef/CSS/TextDecoration.php | 38 + .../library/HTMLPurifier/AttrDef/CSS/URI.php | 56 + .../library/HTMLPurifier/AttrDef/Enum.php | 65 + .../HTMLPurifier/AttrDef/HTML/Bool.php | 28 + .../HTMLPurifier/AttrDef/HTML/Color.php | 32 + .../HTMLPurifier/AttrDef/HTML/FrameTarget.php | 21 + .../library/HTMLPurifier/AttrDef/HTML/ID.php | 70 + .../HTMLPurifier/AttrDef/HTML/Length.php | 41 + .../HTMLPurifier/AttrDef/HTML/LinkTypes.php | 53 + .../HTMLPurifier/AttrDef/HTML/MultiLength.php | 41 + .../HTMLPurifier/AttrDef/HTML/Nmtokens.php | 48 + .../HTMLPurifier/AttrDef/HTML/Pixels.php | 48 + .../library/HTMLPurifier/AttrDef/Integer.php | 73 + .../library/HTMLPurifier/AttrDef/Lang.php | 73 + .../library/HTMLPurifier/AttrDef/Switch.php | 34 + .../library/HTMLPurifier/AttrDef/Text.php | 15 + .../library/HTMLPurifier/AttrDef/URI.php | 77 + .../HTMLPurifier/AttrDef/URI/Email.php | 17 + .../AttrDef/URI/Email/SimpleCheck.php | 21 + .../library/HTMLPurifier/AttrDef/URI/Host.php | 62 + .../library/HTMLPurifier/AttrDef/URI/IPv4.php | 39 + .../library/HTMLPurifier/AttrDef/URI/IPv6.php | 99 + .../library/HTMLPurifier/AttrTransform.php | 56 + .../HTMLPurifier/AttrTransform/Background.php | 23 + .../HTMLPurifier/AttrTransform/BdoDir.php | 19 + .../HTMLPurifier/AttrTransform/BgColor.php | 23 + .../HTMLPurifier/AttrTransform/BoolToCSS.php | 36 + .../HTMLPurifier/AttrTransform/Border.php | 18 + .../HTMLPurifier/AttrTransform/EnumToCSS.php | 58 + .../AttrTransform/ImgRequired.php | 42 + .../HTMLPurifier/AttrTransform/ImgSpace.php | 44 + .../HTMLPurifier/AttrTransform/Input.php | 40 + .../HTMLPurifier/AttrTransform/Lang.php | 28 + .../HTMLPurifier/AttrTransform/Length.php | 27 + .../HTMLPurifier/AttrTransform/Name.php | 19 + .../HTMLPurifier/AttrTransform/SafeEmbed.php | 15 + .../HTMLPurifier/AttrTransform/SafeObject.php | 16 + .../HTMLPurifier/AttrTransform/SafeParam.php | 50 + .../AttrTransform/ScriptRequired.php | 16 + .../HTMLPurifier/AttrTransform/Textarea.php | 18 + .../library/HTMLPurifier/AttrTypes.php | 74 + .../library/HTMLPurifier/AttrValidator.php | 162 + .../library/HTMLPurifier/Bootstrap.php | 98 + .../library/HTMLPurifier/CSSDefinition.php | 292 ++ .../library/HTMLPurifier/ChildDef.php | 48 + .../HTMLPurifier/ChildDef/Chameleon.php | 48 + .../library/HTMLPurifier/ChildDef/Custom.php | 90 + .../library/HTMLPurifier/ChildDef/Empty.php | 20 + .../HTMLPurifier/ChildDef/Optional.php | 26 + .../HTMLPurifier/ChildDef/Required.php | 117 + .../ChildDef/StrictBlockquote.php | 88 + .../library/HTMLPurifier/ChildDef/Table.php | 142 + .../library/HTMLPurifier/Config.php | 497 +++ .../library/HTMLPurifier/ConfigSchema.php | 231 + .../ConfigSchema/Builder/ConfigSchema.php | 52 + .../HTMLPurifier/ConfigSchema/Builder/Xml.php | 108 + .../HTMLPurifier/ConfigSchema/Exception.php | 11 + .../HTMLPurifier/ConfigSchema/Interchange.php | 57 + .../ConfigSchema/Interchange/Directive.php | 77 + .../ConfigSchema/Interchange/Id.php | 31 + .../ConfigSchema/Interchange/Namespace.php | 21 + .../ConfigSchema/InterchangeBuilder.php | 176 + .../HTMLPurifier/ConfigSchema/Validator.php | 225 + .../ConfigSchema/ValidatorAtom.php | 66 + .../HTMLPurifier/ConfigSchema/schema.ser | Bin 0 -> 11324 bytes .../schema/Attr.AllowedFrameTargets.txt | 12 + .../ConfigSchema/schema/Attr.AllowedRel.txt | 9 + .../ConfigSchema/schema/Attr.AllowedRev.txt | 9 + .../schema/Attr.DefaultImageAlt.txt | 11 + .../schema/Attr.DefaultInvalidImage.txt | 9 + .../schema/Attr.DefaultInvalidImageAlt.txt | 8 + .../schema/Attr.DefaultTextDir.txt | 10 + .../ConfigSchema/schema/Attr.EnableID.txt | 16 + .../ConfigSchema/schema/Attr.IDBlacklist.txt | 5 + .../schema/Attr.IDBlacklistRegexp.txt | 9 + .../ConfigSchema/schema/Attr.IDPrefix.txt | 12 + .../schema/Attr.IDPrefixLocal.txt | 14 + .../HTMLPurifier/ConfigSchema/schema/Attr.txt | 3 + .../schema/AutoFormat.AutoParagraph.txt | 31 + .../ConfigSchema/schema/AutoFormat.Custom.txt | 12 + .../schema/AutoFormat.DisplayLinkURI.txt | 11 + .../schema/AutoFormat.Linkify.txt | 12 + .../schema/AutoFormat.PurifierLinkify.txt | 12 + .../schema/AutoFormat.RemoveEmpty.txt | 45 + .../ConfigSchema/schema/AutoFormat.txt | 3 + .../AutoFormatParam.PurifierLinkifyDocURL.txt | 12 + .../ConfigSchema/schema/AutoFormatParam.txt | 3 + .../schema/CSS.AllowImportant.txt | 8 + .../ConfigSchema/schema/CSS.AllowTricky.txt | 11 + .../schema/CSS.AllowedProperties.txt | 18 + .../ConfigSchema/schema/CSS.DefinitionRev.txt | 11 + .../ConfigSchema/schema/CSS.MaxImgLength.txt | 16 + .../ConfigSchema/schema/CSS.Proprietary.txt | 10 + .../HTMLPurifier/ConfigSchema/schema/CSS.txt | 3 + .../schema/Cache.DefinitionImpl.txt | 14 + .../schema/Cache.SerializerPath.txt | 13 + .../ConfigSchema/schema/Cache.txt | 3 + .../schema/Core.AggressivelyFixLt.txt | 18 + .../schema/Core.CollectErrors.txt | 12 + .../schema/Core.ColorKeywords.txt | 28 + .../schema/Core.ConvertDocumentToFragment.txt | 14 + .../Core.DirectLexLineNumberSyncInterval.txt | 17 + .../ConfigSchema/schema/Core.Encoding.txt | 15 + .../schema/Core.EscapeInvalidChildren.txt | 10 + .../schema/Core.EscapeInvalidTags.txt | 7 + .../schema/Core.EscapeNonASCIICharacters.txt | 13 + .../schema/Core.HiddenElements.txt | 19 + .../ConfigSchema/schema/Core.Language.txt | 10 + .../ConfigSchema/schema/Core.LexerImpl.txt | 34 + .../schema/Core.MaintainLineNumbers.txt | 16 + .../schema/Core.RemoveInvalidImg.txt | 12 + .../schema/Core.RemoveScriptContents.txt | 12 + .../HTMLPurifier/ConfigSchema/schema/Core.txt | 3 + .../ConfigSchema/schema/Filter.Custom.txt | 11 + .../schema/Filter.ExtractStyleBlocks.txt | 74 + .../ConfigSchema/schema/Filter.YouTube.txt | 11 + .../ConfigSchema/schema/Filter.txt | 3 + ...FilterParam.ExtractStyleBlocksEscaping.txt | 14 + .../FilterParam.ExtractStyleBlocksScope.txt | 29 + ...FilterParam.ExtractStyleBlocksTidyImpl.txt | 15 + .../ConfigSchema/schema/FilterParam.txt | 3 + .../ConfigSchema/schema/HTML.Allowed.txt | 22 + .../schema/HTML.AllowedAttributes.txt | 19 + .../schema/HTML.AllowedElements.txt | 18 + .../schema/HTML.AllowedModules.txt | 20 + .../ConfigSchema/schema/HTML.BlockWrapper.txt | 18 + .../ConfigSchema/schema/HTML.CoreModules.txt | 23 + .../schema/HTML.CustomDoctype.txt | 9 + .../ConfigSchema/schema/HTML.DefinitionID.txt | 33 + .../schema/HTML.DefinitionRev.txt | 16 + .../ConfigSchema/schema/HTML.Doctype.txt | 11 + .../schema/HTML.ForbiddenAttributes.txt | 21 + .../schema/HTML.ForbiddenElements.txt | 20 + .../ConfigSchema/schema/HTML.MaxImgLength.txt | 14 + .../ConfigSchema/schema/HTML.Parent.txt | 12 + .../ConfigSchema/schema/HTML.Proprietary.txt | 12 + .../ConfigSchema/schema/HTML.SafeEmbed.txt | 14 + .../ConfigSchema/schema/HTML.SafeObject.txt | 14 + .../ConfigSchema/schema/HTML.Strict.txt | 9 + .../ConfigSchema/schema/HTML.TidyAdd.txt | 8 + .../ConfigSchema/schema/HTML.TidyLevel.txt | 24 + .../ConfigSchema/schema/HTML.TidyRemove.txt | 8 + .../ConfigSchema/schema/HTML.Trusted.txt | 8 + .../ConfigSchema/schema/HTML.XHTML.txt | 11 + .../HTMLPurifier/ConfigSchema/schema/HTML.txt | 3 + .../schema/Output.CommentScriptContents.txt | 10 + .../ConfigSchema/schema/Output.Newline.txt | 13 + .../ConfigSchema/schema/Output.SortAttr.txt | 14 + .../ConfigSchema/schema/Output.TidyFormat.txt | 25 + .../ConfigSchema/schema/Output.txt | 3 + .../ConfigSchema/schema/Test.ForceNoIconv.txt | 7 + .../HTMLPurifier/ConfigSchema/schema/Test.txt | 3 + .../schema/URI.AllowedSchemes.txt | 15 + .../ConfigSchema/schema/URI.Base.txt | 17 + .../ConfigSchema/schema/URI.DefaultScheme.txt | 10 + .../ConfigSchema/schema/URI.DefinitionID.txt | 11 + .../ConfigSchema/schema/URI.DefinitionRev.txt | 11 + .../ConfigSchema/schema/URI.Disable.txt | 14 + .../schema/URI.DisableExternal.txt | 11 + .../schema/URI.DisableExternalResources.txt | 13 + .../schema/URI.DisableResources.txt | 12 + .../ConfigSchema/schema/URI.Host.txt | 19 + .../ConfigSchema/schema/URI.HostBlacklist.txt | 9 + .../ConfigSchema/schema/URI.MakeAbsolute.txt | 13 + .../ConfigSchema/schema/URI.Munge.txt | 83 + .../schema/URI.MungeResources.txt | 17 + .../schema/URI.MungeSecretKey.txt | 30 + .../schema/URI.OverrideAllowedSchemes.txt | 9 + .../HTMLPurifier/ConfigSchema/schema/URI.txt | 3 + .../HTMLPurifier/ConfigSchema/schema/info.ini | 3 + .../library/HTMLPurifier/ContentSets.php | 155 + .../library/HTMLPurifier/Context.php | 82 + .../library/HTMLPurifier/Definition.php | 39 + .../library/HTMLPurifier/DefinitionCache.php | 108 + .../DefinitionCache/Decorator.php | 62 + .../DefinitionCache/Decorator/Cleanup.php | 43 + .../DefinitionCache/Decorator/Memory.php | 46 + .../DefinitionCache/Decorator/Template.php.in | 47 + .../HTMLPurifier/DefinitionCache/Null.php | 39 + .../DefinitionCache/Serializer.php | 172 + ...3.0,100651a4228f7f5e2ed76d7bf716cc0c,1.ser | Bin 0 -> 24417 bytes ...3.0,45b0517676cd053c6e36094a738f227d,1.ser | Bin 0 -> 5909 bytes ...3.0,4a226eae658b18b7585dcf9b89faec84,1.ser | Bin 0 -> 20387 bytes ...3.0,82083055ed354c59f36a803cf20c7427,1.ser | Bin 0 -> 24521 bytes ...3.0,a76f5d9f2e01e9a480f6210288f9e4a9,1.ser | Bin 0 -> 19515 bytes ...3.0,c7c3b486561915de4f65b513847bcd4d,1.ser | Bin 0 -> 18642 bytes ...3.0,f60bb57a6b2f21caca005e22d34a48b9,1.ser | Bin 0 -> 23543 bytes .../DefinitionCache/Serializer/README | 3 + ...3.0,05c766101e813c246917b022f97b5e6e,1.ser | Bin 0 -> 327 bytes .../HTMLPurifier/DefinitionCacheFactory.php | 91 + .../library/HTMLPurifier/Doctype.php | 60 + .../library/HTMLPurifier/DoctypeRegistry.php | 103 + .../library/HTMLPurifier/ElementDef.php | 175 + .../library/HTMLPurifier/Encoder.php | 426 ++ .../library/HTMLPurifier/EntityLookup.php | 44 + .../HTMLPurifier/EntityLookup/entities.ser | 1 + .../library/HTMLPurifier/EntityParser.php | 144 + .../library/HTMLPurifier/ErrorCollector.php | 209 + .../library/HTMLPurifier/ErrorStruct.php | 60 + .../library/HTMLPurifier/Exception.php | 12 + .../library/HTMLPurifier/Filter.php | 46 + .../Filter/ExtractStyleBlocks.php | 135 + .../library/HTMLPurifier/Filter/YouTube.php | 39 + .../library/HTMLPurifier/Generator.php | 183 + .../library/HTMLPurifier/HTMLDefinition.php | 420 ++ .../library/HTMLPurifier/HTMLModule.php | 244 + .../library/HTMLPurifier/HTMLModule/Bdo.php | 31 + .../HTMLModule/CommonAttributes.php | 25 + .../library/HTMLPurifier/HTMLModule/Edit.php | 38 + .../library/HTMLPurifier/HTMLModule/Forms.php | 118 + .../HTMLPurifier/HTMLModule/Hypertext.php | 31 + .../library/HTMLPurifier/HTMLModule/Image.php | 40 + .../HTMLPurifier/HTMLModule/Legacy.php | 143 + .../library/HTMLPurifier/HTMLModule/List.php | 35 + .../library/HTMLPurifier/HTMLModule/Name.php | 18 + .../HTMLModule/NonXMLCommonAttributes.php | 14 + .../HTMLPurifier/HTMLModule/Object.php | 47 + .../HTMLPurifier/HTMLModule/Presentation.php | 36 + .../HTMLPurifier/HTMLModule/Proprietary.php | 33 + .../library/HTMLPurifier/HTMLModule/Ruby.php | 27 + .../HTMLPurifier/HTMLModule/SafeEmbed.php | 33 + .../HTMLPurifier/HTMLModule/SafeObject.php | 50 + .../HTMLPurifier/HTMLModule/Scripting.php | 54 + .../HTMLModule/StyleAttribute.php | 24 + .../HTMLPurifier/HTMLModule/Tables.php | 66 + .../HTMLPurifier/HTMLModule/Target.php | 23 + .../library/HTMLPurifier/HTMLModule/Text.php | 71 + .../library/HTMLPurifier/HTMLModule/Tidy.php | 207 + .../HTMLPurifier/HTMLModule/Tidy/Name.php | 24 + .../HTMLModule/Tidy/Proprietary.php | 23 + .../HTMLPurifier/HTMLModule/Tidy/Strict.php | 21 + .../HTMLModule/Tidy/Transitional.php | 9 + .../HTMLPurifier/HTMLModule/Tidy/XHTML.php | 17 + .../HTMLModule/Tidy/XHTMLAndHTML4.php | 161 + .../HTMLModule/XMLCommonAttributes.php | 14 + .../HTMLPurifier/HTMLModuleManager.php | 403 ++ .../library/HTMLPurifier/IDAccumulator.php | 53 + .../library/HTMLPurifier/Injector.php | 233 + .../HTMLPurifier/Injector/AutoParagraph.php | 340 ++ .../HTMLPurifier/Injector/DisplayLinkURI.php | 26 + .../library/HTMLPurifier/Injector/Linkify.php | 46 + .../HTMLPurifier/Injector/PurifierLinkify.php | 45 + .../HTMLPurifier/Injector/RemoveEmpty.php | 42 + .../HTMLPurifier/Injector/SafeObject.php | 87 + .../library/HTMLPurifier/Language.php | 163 + .../Language/classes/en-x-test.php | 12 + .../Language/messages/en-x-test.php | 11 + .../Language/messages/en-x-testmini.php | 12 + .../HTMLPurifier/Language/messages/en.php | 62 + .../library/HTMLPurifier/LanguageFactory.php | 198 + .../library/HTMLPurifier/Length.php | 115 + .../library/HTMLPurifier/Lexer.php | 298 ++ .../library/HTMLPurifier/Lexer/DOMLex.php | 213 + .../library/HTMLPurifier/Lexer/DirectLex.php | 490 +++ .../library/HTMLPurifier/Lexer/PEARSax3.php | 106 + .../library/HTMLPurifier/Lexer/PH5P.php | 3906 +++++++++++++++++ .../library/HTMLPurifier/PercentEncoder.php | 98 + .../library/HTMLPurifier/Printer.php | 176 + .../HTMLPurifier/Printer/CSSDefinition.php | 38 + .../HTMLPurifier/Printer/ConfigForm.css | 10 + .../HTMLPurifier/Printer/ConfigForm.js | 5 + .../HTMLPurifier/Printer/ConfigForm.php | 368 ++ .../HTMLPurifier/Printer/HTMLDefinition.php | 272 ++ .../library/HTMLPurifier/PropertyList.php | 86 + .../HTMLPurifier/PropertyListIterator.php | 32 + .../library/HTMLPurifier/Strategy.php | 26 + .../HTMLPurifier/Strategy/Composite.php | 25 + .../library/HTMLPurifier/Strategy/Core.php | 18 + .../HTMLPurifier/Strategy/FixNesting.php | 328 ++ .../HTMLPurifier/Strategy/MakeWellFormed.php | 455 ++ .../Strategy/RemoveForeignElements.php | 171 + .../Strategy/ValidateAttributes.php | 39 + .../library/HTMLPurifier/StringHash.php | 39 + .../library/HTMLPurifier/StringHashParser.php | 110 + .../library/HTMLPurifier/TagTransform.php | 36 + .../HTMLPurifier/TagTransform/Font.php | 96 + .../HTMLPurifier/TagTransform/Simple.php | 35 + .../library/HTMLPurifier/Token.php | 57 + .../library/HTMLPurifier/Token/Comment.php | 22 + .../library/HTMLPurifier/Token/Empty.php | 11 + .../library/HTMLPurifier/Token/End.php | 19 + .../library/HTMLPurifier/Token/Start.php | 11 + .../library/HTMLPurifier/Token/Tag.php | 56 + .../library/HTMLPurifier/Token/Text.php | 33 + .../library/HTMLPurifier/TokenFactory.php | 94 + lib/htmlpurifier/library/HTMLPurifier/URI.php | 173 + .../library/HTMLPurifier/URIDefinition.php | 93 + .../library/HTMLPurifier/URIFilter.php | 45 + .../URIFilter/DisableExternal.php | 23 + .../URIFilter/DisableExternalResources.php | 12 + .../HTMLPurifier/URIFilter/HostBlacklist.php | 21 + .../HTMLPurifier/URIFilter/MakeAbsolute.php | 114 + .../library/HTMLPurifier/URIFilter/Munge.php | 54 + .../library/HTMLPurifier/URIParser.php | 70 + .../library/HTMLPurifier/URIScheme.php | 42 + .../library/HTMLPurifier/URIScheme/ftp.php | 43 + .../library/HTMLPurifier/URIScheme/http.php | 20 + .../library/HTMLPurifier/URIScheme/https.php | 12 + .../library/HTMLPurifier/URIScheme/mailto.php | 27 + .../library/HTMLPurifier/URIScheme/news.php | 22 + .../library/HTMLPurifier/URIScheme/nntp.php | 20 + .../HTMLPurifier/URISchemeRegistry.php | 69 + .../library/HTMLPurifier/UnitConverter.php | 254 ++ .../library/HTMLPurifier/VarParser.php | 154 + .../HTMLPurifier/VarParser/Flexible.php | 96 + .../library/HTMLPurifier/VarParser/Native.php | 26 + .../HTMLPurifier/VarParserException.php | 11 + 337 files changed, 24139 insertions(+), 5 deletions(-) create mode 100755 lib/htmlpurifier/CREDITS create mode 100755 lib/htmlpurifier/LICENSE create mode 100755 lib/htmlpurifier/library/HTMLPurifier.auto.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier.autoload.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier.func.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier.includes.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier.kses.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier.path.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier.safe-includes.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrCollections.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/AlphaValue.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Background.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Border.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Color.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Composite.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/DenyElementDecorator.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Filter.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Font.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/FontFamily.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/ImportantDecorator.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Length.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/ListStyle.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Multiple.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Number.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Percentage.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/TextDecoration.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/URI.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/Enum.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Bool.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Color.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/FrameTarget.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/ID.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Length.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/LinkTypes.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/MultiLength.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Nmtokens.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Pixels.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/Integer.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/Lang.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/Switch.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/Text.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv4.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv6.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Background.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/BdoDir.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/BgColor.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/BoolToCSS.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Border.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/EnumToCSS.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/ImgRequired.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/ImgSpace.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Input.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Lang.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Length.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Name.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeEmbed.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeObject.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeParam.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/ScriptRequired.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Textarea.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrTypes.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/AttrValidator.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Bootstrap.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/CSSDefinition.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ChildDef.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Chameleon.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Custom.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Empty.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Optional.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Required.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ChildDef/StrictBlockquote.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Table.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Config.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Builder/ConfigSchema.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Builder/Xml.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Exception.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange/Directive.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange/Id.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange/Namespace.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/InterchangeBuilder.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Validator.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/ValidatorAtom.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema.ser create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.AllowedFrameTargets.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.AllowedRel.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.AllowedRev.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.DefaultImageAlt.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.DefaultInvalidImage.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.DefaultInvalidImageAlt.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.DefaultTextDir.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.EnableID.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.IDBlacklist.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.IDBlacklistRegexp.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.IDPrefix.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.IDPrefixLocal.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.AutoParagraph.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.Custom.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.DisplayLinkURI.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.Linkify.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.PurifierLinkify.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.RemoveEmpty.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormatParam.PurifierLinkifyDocURL.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormatParam.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.AllowImportant.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.AllowTricky.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.AllowedProperties.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.DefinitionRev.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.MaxImgLength.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.Proprietary.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Cache.DefinitionImpl.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Cache.SerializerPath.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Cache.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.AggressivelyFixLt.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.CollectErrors.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.ColorKeywords.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.ConvertDocumentToFragment.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.DirectLexLineNumberSyncInterval.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.Encoding.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.EscapeInvalidChildren.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.EscapeInvalidTags.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.EscapeNonASCIICharacters.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.HiddenElements.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.Language.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.LexerImpl.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.MaintainLineNumbers.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.RemoveInvalidImg.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.RemoveScriptContents.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Filter.Custom.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Filter.ExtractStyleBlocks.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Filter.YouTube.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Filter.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/FilterParam.ExtractStyleBlocksEscaping.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/FilterParam.ExtractStyleBlocksScope.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/FilterParam.ExtractStyleBlocksTidyImpl.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/FilterParam.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Allowed.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.AllowedAttributes.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.AllowedElements.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.AllowedModules.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.BlockWrapper.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.CoreModules.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.CustomDoctype.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionID.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionRev.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Doctype.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.ForbiddenAttributes.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.ForbiddenElements.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.MaxImgLength.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Parent.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Proprietary.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.SafeEmbed.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.SafeObject.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Strict.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.TidyAdd.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.TidyLevel.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.TidyRemove.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Trusted.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.XHTML.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Output.CommentScriptContents.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Output.Newline.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Output.SortAttr.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Output.TidyFormat.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Output.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Test.ForceNoIconv.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Test.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.AllowedSchemes.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.Base.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DefaultScheme.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DefinitionID.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DefinitionRev.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.Disable.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DisableExternal.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DisableExternalResources.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DisableResources.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.Host.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.HostBlacklist.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.MakeAbsolute.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.Munge.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.MungeResources.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.MungeSecretKey.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.OverrideAllowedSchemes.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.txt create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/info.ini create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ContentSets.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Context.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Definition.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Memory.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Template.php.in create mode 100755 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Null.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/3.3.0,100651a4228f7f5e2ed76d7bf716cc0c,1.ser create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/3.3.0,45b0517676cd053c6e36094a738f227d,1.ser create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/3.3.0,4a226eae658b18b7585dcf9b89faec84,1.ser create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/3.3.0,82083055ed354c59f36a803cf20c7427,1.ser create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/3.3.0,a76f5d9f2e01e9a480f6210288f9e4a9,1.ser create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/3.3.0,c7c3b486561915de4f65b513847bcd4d,1.ser create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/3.3.0,f60bb57a6b2f21caca005e22d34a48b9,1.ser create mode 100755 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/README create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/URI/3.3.0,05c766101e813c246917b022f97b5e6e,1.ser create mode 100755 lib/htmlpurifier/library/HTMLPurifier/DefinitionCacheFactory.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Doctype.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/DoctypeRegistry.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ElementDef.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Encoder.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/EntityLookup.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/EntityLookup/entities.ser create mode 100755 lib/htmlpurifier/library/HTMLPurifier/EntityParser.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ErrorCollector.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/ErrorStruct.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Exception.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Filter.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Filter/ExtractStyleBlocks.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Filter/YouTube.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Generator.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLDefinition.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Bdo.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/CommonAttributes.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Edit.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Forms.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Hypertext.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Image.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Legacy.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/List.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Name.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Object.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Presentation.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Proprietary.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Ruby.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeEmbed.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeObject.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Scripting.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/StyleAttribute.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tables.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Target.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Text.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Name.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Proprietary.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Strict.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Transitional.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTML.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/XMLCommonAttributes.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/HTMLModuleManager.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/IDAccumulator.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Injector.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Injector/AutoParagraph.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Injector/DisplayLinkURI.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Injector/Linkify.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Injector/PurifierLinkify.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Injector/RemoveEmpty.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Injector/SafeObject.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Language.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Language/classes/en-x-test.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Language/messages/en-x-test.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Language/messages/en-x-testmini.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Language/messages/en.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/LanguageFactory.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Length.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Lexer.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Lexer/DirectLex.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Lexer/PEARSax3.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Lexer/PH5P.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/PercentEncoder.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Printer.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Printer/CSSDefinition.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Printer/ConfigForm.css create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Printer/ConfigForm.js create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Printer/ConfigForm.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Printer/HTMLDefinition.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/PropertyList.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/PropertyListIterator.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Strategy.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Strategy/Composite.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Strategy/Core.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Strategy/FixNesting.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Strategy/MakeWellFormed.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Strategy/RemoveForeignElements.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Strategy/ValidateAttributes.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/StringHash.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/StringHashParser.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/TagTransform.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/TagTransform/Font.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/TagTransform/Simple.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Token.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Token/Comment.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Token/Empty.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Token/End.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Token/Start.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Token/Tag.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/Token/Text.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/TokenFactory.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URI.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIDefinition.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIFilter.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternal.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIFilter/HostBlacklist.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIFilter/MakeAbsolute.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIFilter/Munge.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIParser.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIScheme.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIScheme/ftp.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIScheme/http.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIScheme/https.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIScheme/mailto.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIScheme/news.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URIScheme/nntp.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/URISchemeRegistry.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/UnitConverter.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/VarParser.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/VarParser/Flexible.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/VarParser/Native.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/VarParserException.php diff --git a/functions.php b/functions.php index 6a8e8562..8e98d487 100644 --- a/functions.php +++ b/functions.php @@ -106,6 +106,7 @@ require_once "lib/simplepie/simplepie.inc"; require_once "lib/magpierss/rss_fetch.inc"; require_once 'lib/magpierss/rss_utils.inc'; + require_once 'lib/htmlpurifier/library/HTMLPurifier.auto.php'; /** * Print a timestamped debug message. @@ -3550,9 +3551,20 @@ } } + function strip_tags_long($string, $allowed) { + + $config = HTMLPurifier_Config::createDefault(); + + $config->set('HTML', 'Allowed', $allowed); + $purifier = new HTMLPurifier($config); + + return $purifier->purify($string); + + } + // http://ru2.php.net/strip-tags - function strip_tags_long($textstring, $allowed){ +/* function strip_tags_long($textstring, $allowed){ while($textstring != strip_tags($textstring, $allowed)) { while (strlen($textstring) != 0) @@ -3569,7 +3581,7 @@ $textstring = $safetext; } return $textstring; - } +} */ function sanitize_rss($link, $str, $force_strip_tags = false) { @@ -3577,11 +3589,12 @@ if (get_pref($link, "STRIP_UNSAFE_TAGS") || $force_strip_tags) { +// $res = strip_tags_long($res, +// "