repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload-legacy.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload-legacy.php
<?php /** * @file * Legacy autoloader for systems lacking spl_autoload_register * * Must be separate to prevent deprecation warning on PHP 7.2 */ function __autoload($class) { return HTMLPurifier_Bootstrap::autoload($class); } // vim: et sw=4 sts=4
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier.kses.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.kses.php
<?php /** * @file * Emulation layer for code that used kses(), substituting in HTML Purifier. */ require_once dirname(__FILE__) . '/HTMLPurifier.auto.php'; function kses($string, $allowed_html, $allowed_protocols = null) { $config = HTMLPurifier_Config::createDefault(); $allowed_elements = array(); $a...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.php
<?php /*! @mainpage * * HTML Purifier is an HTML filter that will take an arbitrary snippet of * HTML and rigorously test, validate and filter it into a version that * is safe for output onto webpages. It achieves this by: * * -# Lexing (parsing into tokens) the document, * -# Executing various strategies on ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier.func.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.func.php
<?php /** * @file * Defines a function wrapper for HTML Purifier for quick use. * @note ''HTMLPurifier()'' is NOT the same as ''new HTMLPurifier()'' */ /** * Purify HTML. * @param string $html String HTML to purify * @param mixed $config Configuration to use, can be any value accepted by * HTMLPurifier...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier.composer.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.composer.php
<?php if (!defined('HTMLPURIFIER_PREFIX')) { define('HTMLPURIFIER_PREFIX', dirname(__FILE__)); }
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Doctype.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Doctype.php
<?php /** * Represents a document type, contains information on which modules * need to be loaded. * @note This class is inspected by Printer_HTMLDefinition->renderDoctype. * If structure changes, please update that function. */ class HTMLPurifier_Doctype { /** * Full name of doctype * @type s...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/StringHash.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/StringHash.php
<?php /** * This is in almost every respect equivalent to an array except * that it keeps track of which keys were accessed. * * @warning For the sake of backwards compatibility with early versions * of PHP 5, you must not use the $hash[$key] syntax; if you do * our version of offsetGet is never called. ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token.php
<?php /** * Abstract base token class that all others inherit from. */ abstract class HTMLPurifier_Token { /** * Line number node was on in source document. Null if unknown. * @type int */ public $line; /** * Column of line node was on in source document. Null if unknown. * @typ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLDefinition.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLDefinition.php
<?php /** * Definition of the purified HTML that describes allowed children, * attributes, and many other things. * * Conventions: * * All member variables that are prefixed with info * (including the main $info array) are used by HTML Purifier internals * and should not be directly edited when customizing the...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrCollections.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrCollections.php
<?php /** * Defines common attribute collections that modules reference */ class HTMLPurifier_AttrCollections { /** * Associative array of attribute collections, indexed by name. * @type array */ public $info = array(); /** * Performs all expansions on internal data for use by othe...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIDefinition.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIDefinition.php
<?php class HTMLPurifier_URIDefinition extends HTMLPurifier_Definition { public $type = 'URI'; protected $filters = array(); protected $postFilters = array(); protected $registeredFilters = array(); /** * HTMLPurifier_URI object of the base specified at %URI.Base */ public $base; ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme.php
<?php /** * Validator for the components of a URI for a specific scheme */ abstract class HTMLPurifier_URIScheme { /** * Scheme's default port (integer). If an explicit port number is * specified that coincides with the default port, it will be * elided. * @type int */ public $defau...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/TagTransform.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/TagTransform.php
<?php /** * Defines a mutation of an obsolete tag into a valid tag. */ abstract class HTMLPurifier_TagTransform { /** * Tag name to transform the tag to. * @type string */ public $transform_to; /** * Transforms the obsolete tag into the valid tag. * @param HTMLPurifier_Token_Ta...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/PropertyList.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/PropertyList.php
<?php /** * Generic property list implementation */ class HTMLPurifier_PropertyList { /** * Internal data-structure for properties. * @type array */ protected $data = array(); /** * Parent plist. * @type HTMLPurifier_PropertyList */ protected $parent; /** * Ca...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModuleManager.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModuleManager.php
<?php class HTMLPurifier_HTMLModuleManager { /** * @type HTMLPurifier_DoctypeRegistry */ public $doctypes; /** * Instance of current doctype. * @type string */ public $doctype; /** * @type HTMLPurifier_AttrTypes */ public $attrTypes; /** * Active ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer.php
<?php /** * Forgivingly lexes HTML (SGML-style) markup into tokens. * * A lexer parses a string of SGML-style markup and converts them into * corresponding tokens. It doesn't check for well-formedness, although its * internal mechanism may make this automatic (such as the case of * HTMLPurifier_Lexer_DOMLex). ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache.php
<?php /** * Abstract class representing Definition cache managers that implements * useful common methods and is a factory. * @todo Create a separate maintenance file advanced users can use to * cache their custom HTMLDefinition, which can be loaded * via a configuration directive * @todo Implement m...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ErrorCollector.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ErrorCollector.php
<?php /** * Error collection class that enables HTML Purifier to report HTML * problems back to the user */ class HTMLPurifier_ErrorCollector { /** * Identifiers for the returned error array. These are purposely numeric * so list() can be used. */ const LINENO = 0; const SEVERITY = 1; ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Definition.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Definition.php
<?php /** * Super-class for definition datatype objects, implements serialization * functions for the class. */ abstract class HTMLPurifier_Definition { /** * Has setup() been called yet? * @type bool */ public $setup = false; /** * If true, write out the final definition object to...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Encoder.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Encoder.php
<?php /** * A UTF-8 specific character encoder that handles cleaning and transforming. * @note All functions in this class should be static. */ class HTMLPurifier_Encoder { /** * Constructor throws fatal error if you attempt to instantiate class */ private function __construct() { tri...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule.php
<?php /** * Represents an XHTML 1.1 module, with information on elements, tags * and attributes. * @note Even though this is technically XHTML 1.1, it is also used for * regular HTML parsing. We are using modulization as a convenient * way to represent the internals of HTMLDefinition, and our * ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URI.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URI.php
<?php /** * HTML Purifier's internal representation of a URI. * @note * Internal data-structures are completely escaped. If the data needs * to be used in a non-URI context (which is very unlikely), be sure * to decode it first. The URI may not necessarily be well-formed until * validate() is...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Context.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Context.php
<?php /** * Registry object that contains information about the current context. * @warning Is a bit buggy when variables are set to null: it thinks * they don't exist! So use false instead, please. * @note Since the variables Context deals with may not be objects, * references are very important h...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Bootstrap.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Bootstrap.php
<?php // constants are slow, so we use as few as possible if (!defined('HTMLPURIFIER_PREFIX')) { define('HTMLPURIFIER_PREFIX', realpath(dirname(__FILE__) . '/..')); } // accomodations for versions earlier than 5.0.2 // borrowed from PHP_Compat, LGPL licensed, by Aidan Lister <aidan@php.net> if (!defined('PHP_EOL'...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/VarParser.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/VarParser.php
<?php /** * Parses string representations into their corresponding native PHP * variable type. The base implementation does a simple type-check. */ class HTMLPurifier_VarParser { const C_STRING = 1; const ISTRING = 2; const TEXT = 3; const ITEXT = 4; const C_INT = 5; const C_FLOAT = 6; ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URISchemeRegistry.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URISchemeRegistry.php
<?php /** * Registry for retrieving specific URI scheme validator objects. */ class HTMLPurifier_URISchemeRegistry { /** * Retrieve sole instance of the registry. * @param HTMLPurifier_URISchemeRegistry $prototype Optional prototype to overload sole instance with, * or bool true...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema.php
<?php /** * Configuration definition, defines directives and their defaults. */ class HTMLPurifier_ConfigSchema { /** * Defaults of the directives and namespaces. * @type array * @note This shares the exact same structure as HTMLPurifier_Config::$conf */ public $defaults = array(); /...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Printer.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Printer.php
<?php // OUT OF DATE, NEEDS UPDATING! // USE XMLWRITER! class HTMLPurifier_Printer { /** * For HTML generation convenience funcs. * @type HTMLPurifier_Generator */ protected $generator; /** * For easy access. * @type HTMLPurifier_Config */ protected $config; /** ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Language.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Language.php
<?php /** * Represents a language and defines localizable string formatting and * other functions, as well as the localized messages for HTML Purifier. */ class HTMLPurifier_Language { /** * ISO 639 language code of language. Prefers shortest possible version. * @type string */ public $code ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/CSSDefinition.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/CSSDefinition.php
<?php /** * Defines allowed CSS attributes and what their values are. * @see HTMLPurifier_HTMLDefinition */ class HTMLPurifier_CSSDefinition extends HTMLPurifier_Definition { public $type = 'CSS'; /** * Assoc array of attribute name to definition object. * @type HTMLPurifier_AttrDef[] */ ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform.php
<?php /** * Processes an entire attribute array for corrections needing multiple values. * * Occasionally, a certain attribute will need to be removed and popped onto * another value. Instead of creating a complex return syntax for * HTMLPurifier_AttrDef, we just pass the whole attribute array to a * specialize...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/VarParserException.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/VarParserException.php
<?php /** * Exception type for HTMLPurifier_VarParser */ class HTMLPurifier_VarParserException extends HTMLPurifier_Exception { } // vim: et sw=4 sts=4
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/IDAccumulator.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/IDAccumulator.php
<?php /** * Component of HTMLPurifier_AttrContext that accumulates IDs to prevent dupes * @note In Slashdot-speak, dupe means duplicate. * @note The default constructor does not accept $config or $context objects: * use must use the static build() factory method to perform initialization. */ class HTMLPurif...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/LanguageFactory.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/LanguageFactory.php
<?php /** * Class responsible for generating HTMLPurifier_Language objects, managing * caching and fallbacks. * @note Thanks to MediaWiki for the general logic, although this version * has been entirely rewritten * @todo Serialized cache for languages */ class HTMLPurifier_LanguageFactory { /** *...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/PropertyListIterator.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/PropertyListIterator.php
<?php /** * Property list iterator. Do not instantiate this class directly. */ class HTMLPurifier_PropertyListIterator extends FilterIterator { /** * @type int */ protected $l; /** * @type string */ protected $filter; /** * @param Iterator $iterator Array of data to ite...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/StringHashParser.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/StringHashParser.php
<?php /** * Parses string hash files. File format is as such: * * DefaultKeyValue * KEY: Value * KEY2: Value2 * --MULTILINE-KEY-- * Multiline * value. * * Which would output something similar to: * * array( * 'ID' => 'DefaultKeyValue', * 'KEY' => 'Valu...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Exception.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Exception.php
<?php /** * Global exception class for HTML Purifier; any exceptions we throw * are from here. */ class HTMLPurifier_Exception extends Exception { } // vim: et sw=4 sts=4
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/UnitConverter.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/UnitConverter.php
<?php /** * Class for converting between different unit-lengths as specified by * CSS. */ class HTMLPurifier_UnitConverter { const ENGLISH = 1; const METRIC = 2; const DIGITAL = 3; /** * Units information array. Units are grouped into measuring systems * (English, Metric), and are assign...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Length.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Length.php
<?php /** * Represents a measurable length, with a string numeric magnitude * and a unit. This object is immutable. */ class HTMLPurifier_Length { /** * String numeric magnitude. * @type string */ protected $n; /** * String unit. False is permitted if $n = 0. * @type string|bo...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/EntityParser.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/EntityParser.php
<?php // 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 // $config or $context to the callback functions. /** * Handles referencing and derefencing character entities */ class HTMLPurifier_EntityParser { /** ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCacheFactory.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCacheFactory.php
<?php /** * Responsible for creating definition caches. */ class HTMLPurifier_DefinitionCacheFactory { /** * @type array */ protected $caches = array('Serializer' => array()); /** * @type array */ protected $implementations = array(); /** * @type HTMLPurifier_Definition...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php
<?php /** * Injects tokens into the document while parsing for well-formedness. * This enables "formatter-like" functionality such as auto-paragraphing, * smiley-ification and linkification to take place. * * A note on how handlers create changes; this is done by assigning a new * value to the $token reference. ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php
<?php /** * Configuration object that triggers customizable behavior. * * @warning This class is strongly defined: that means that the class * will fail if an undefined directive is retrieved or set. * * @note Many classes that could (although many times don't) use the * configuration object make...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DoctypeRegistry.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DoctypeRegistry.php
<?php class HTMLPurifier_DoctypeRegistry { /** * Hash of doctype names to doctype objects. * @type array */ protected $doctypes; /** * Lookup table of aliases to real doctype names. * @type array */ protected $aliases; /** * Registers a doctype to the registry ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIParser.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIParser.php
<?php /** * Parses a URI into the components and fragment identifier as specified * by RFC 3986. */ class HTMLPurifier_URIParser { /** * Instance of HTMLPurifier_PercentEncoder to do normalization with. */ protected $percentEncoder; public function __construct() { $this->percentE...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy.php
<?php /** * Supertype for classes that define a strategy for modifying/purifying tokens. * * While HTMLPurifier's core purpose is fixing HTML into something proper, * strategies provide plug points for extra configuration or even extra * features, such as custom tags, custom parsing of text, etc. */ abstract c...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrValidator.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrValidator.php
<?php /** * Validates the attributes of a token. Doesn't manage required attributes * very well. The only reason we factored this out was because RemoveForeignElements * also needed it besides ValidateAttributes. */ class HTMLPurifier_AttrValidator { /** * Validates the attributes of a token, mutating it...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node.php
<?php /** * Abstract base node class that all others inherit from. * * Why do we not use the DOM extension? (1) It is not always available, * (2) it has funny constraints on the data it can represent, * whereas we want a maximally flexible representation, and (3) its * interface is a bit cumbersome. */ abstrac...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTypes.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTypes.php
<?php /** * Provides lookup array of attribute types to HTMLPurifier_AttrDef objects */ class HTMLPurifier_AttrTypes { /** * Lookup array of attribute string identifiers to concrete implementations. * @type HTMLPurifier_AttrDef[] */ protected $info = array(); /** * Constructs the inf...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef.php
<?php /** * Defines allowed child nodes and validates nodes against it. */ abstract class HTMLPurifier_ChildDef { /** * Type of child definition, usually right-most part of class name lowercase. * Used occasionally in terms of context. * @type string */ public $type; /** * Indic...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/TokenFactory.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/TokenFactory.php
<?php /** * Factory for token generation. * * @note Doing some benchmarking indicates that the new operator is much * slower than the clone operator (even discounting the cost of the * constructor). This class is for that optimization. * Other then that, there's not much point as we don't * ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter.php
<?php /** * Represents a pre or post processing filter on HTML Purifier's output * * Sometimes, a little ad-hoc fixing of HTML has to be done before * it gets sent through HTML Purifier: you can use filters to acheive * this effect. For instance, YouTube videos can be preserved using * this manner. You could hav...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/EntityLookup.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/EntityLookup.php
<?php /** * Object that provides entity lookup table from entity name to character */ class HTMLPurifier_EntityLookup { /** * Assoc array of entity name to character represented. * @type array */ public $table; /** * Sets up the entity lookup table from the serialized file contents. ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ContentSets.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ContentSets.php
<?php /** * @todo Unit test */ class HTMLPurifier_ContentSets { /** * List of content set strings (pipe separators) indexed by name. * @type array */ public $info = array(); /** * List of content set lookups (element => true) indexed by name. * @type array * @note This is ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter.php
<?php /** * Chainable filters for custom URI processing. * * These filters can perform custom actions on a URI filter object, * including transformation or blacklisting. A filter named Foo * must have a corresponding configuration directive %URI.Foo, * unless always_load is specified to be true. * * The follo...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/PercentEncoder.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/PercentEncoder.php
<?php /** * Class that handles operations involving percent-encoding in URIs. * * @warning * Be careful when reusing instances of PercentEncoder. The object * you use for normalize() SHOULD NOT be used for encode(), or * vice-versa. */ class HTMLPurifier_PercentEncoder { /** * Reserved ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Queue.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Queue.php
<?php /** * A simple array-backed queue, based off of the classic Okasaki * persistent amortized queue. The basic idea is to maintain two * stacks: an input stack and an output stack. When the output * stack runs out, reverse the input stack and use it as the output * stack. * * We don't use the SPL implement...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Arborize.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Arborize.php
<?php /** * Converts a stream of HTMLPurifier_Token into an HTMLPurifier_Node, * and back again. * * @note This transformation is not an equivalence. We mutate the input * token stream to make it so; see all [MUT] markers in code. */ class HTMLPurifier_Arborize { public static function arborize($tokens, $co...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ErrorStruct.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ErrorStruct.php
<?php /** * Records errors for particular segments of an HTML document such as tokens, * attributes or CSS properties. They can contain error structs (which apply * to components of what they represent), but their main purpose is to hold * errors applying to whatever struct is being used. */ class HTMLPurifier_Er...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Generator.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Generator.php
<?php /** * Generates HTML from tokens. * @todo Refactor interface so that configuration/context is determined * upon instantiation, no need for messy generateFromTokens() calls * @todo Make some of the more internal functions protected, and have * unit tests work around that */ class HTMLPurifier_Ge...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef.php
<?php /** * Base class for all validating attribute definitions. * * This family of classes forms the core for not only HTML attribute validation, * but also any sort of string that needs to be validated or cleaned (which * means CSS properties and composite definitions are defined here too). * Besides defining ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Zipper.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Zipper.php
<?php /** * A zipper is a purely-functional data structure which contains * a focus that can be efficiently manipulated. It is known as * a "one-hole context". This mutable variant implements a zipper * for a list as a pair of two arrays, laid out as follows: * * Base list: 1 2 3 4 [ ] 6 7 8 9 * Fro...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ElementDef.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ElementDef.php
<?php /** * Structure that stores an HTML element definition. Used by * HTMLPurifier_HTMLDefinition and HTMLPurifier_HTMLModule. * @note This class is inspected by HTMLPurifier_Printer_HTMLDefinition. * Please update that class too. * @warning If you add new properties to this class, you MUST update * ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/Munge.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/Munge.php
<?php class HTMLPurifier_URIFilter_Munge extends HTMLPurifier_URIFilter { /** * @type string */ public $name = 'Munge'; /** * @type bool */ public $post = true; /** * @type string */ private $target; /** * @type HTMLPurifier_URIParser */ privat...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/HostBlacklist.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/HostBlacklist.php
<?php // It's not clear to me whether or not Punycode means that hostnames // do not have canonical forms anymore. As far as I can tell, it's // not a problem (punycoding should be identity when no Unicode // points are involved), but I'm not 100% sure class HTMLPurifier_URIFilter_HostBlacklist extends HTMLPurifier_UR...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php
<?php class HTMLPurifier_URIFilter_DisableExternalResources extends HTMLPurifier_URIFilter_DisableExternal { /** * @type string */ public $name = 'DisableExternalResources'; /** * @param HTMLPurifier_URI $uri * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $cont...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableResources.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableResources.php
<?php class HTMLPurifier_URIFilter_DisableResources extends HTMLPurifier_URIFilter { /** * @type string */ public $name = 'DisableResources'; /** * @param HTMLPurifier_URI $uri * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $context * @return bool */ ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/SafeIframe.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/SafeIframe.php
<?php /** * Implements safety checks for safe iframes. * * @warning This filter is *critical* for ensuring that %HTML.SafeIframe * works safely. */ class HTMLPurifier_URIFilter_SafeIframe extends HTMLPurifier_URIFilter { /** * @type string */ public $name = 'SafeIframe'; /** * @type bo...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternal.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternal.php
<?php class HTMLPurifier_URIFilter_DisableExternal extends HTMLPurifier_URIFilter { /** * @type string */ public $name = 'DisableExternal'; /** * @type array */ protected $ourHostParts = false; /** * @param HTMLPurifier_Config $config * @return void */ publi...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/MakeAbsolute.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/MakeAbsolute.php
<?php // does not support network paths class HTMLPurifier_URIFilter_MakeAbsolute extends HTMLPurifier_URIFilter { /** * @type string */ public $name = 'MakeAbsolute'; /** * @type */ protected $base; /** * @type array */ protected $basePathStack = array(); ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Tag.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Tag.php
<?php /** * Abstract class of a tag token (start, end or empty), and its behavior. */ abstract class HTMLPurifier_Token_Tag extends HTMLPurifier_Token { /** * Static bool marker that indicates the class is a tag. * * This allows us to check objects with <tt>!empty($obj->is_tag)</tt> * without...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Text.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Text.php
<?php /** * Concrete text token class. * * Text tokens comprise of regular parsed character data (PCDATA) and raw * character data (from the CDATA sections). Internally, their * data is parsed with all entities expanded. Surprisingly, the text token * does have a "tag name" called #PCDATA, which is how the DTD r...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Empty.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Empty.php
<?php /** * Concrete empty token class. */ class HTMLPurifier_Token_Empty extends HTMLPurifier_Token_Tag { public function toNode() { $n = parent::toNode(); $n->empty = true; return $n; } } // vim: et sw=4 sts=4
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/End.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/End.php
<?php /** * Concrete end token class. * * @warning This class accepts attributes even though end tags cannot. This * is for optimization reasons, as under normal circumstances, the Lexers * do not pass attributes. */ class HTMLPurifier_Token_End extends HTMLPurifier_Token_Tag { /** * Token that started ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Comment.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Comment.php
<?php /** * Concrete comment token class. Generally will be ignored. */ class HTMLPurifier_Token_Comment extends HTMLPurifier_Token { /** * Character data within comment. * @type string */ public $data; /** * @type bool */ public $is_whitespace = true; /** * Transp...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Start.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Start.php
<?php /** * Concrete start token class. */ class HTMLPurifier_Token_Start extends HTMLPurifier_Token_Tag { } // vim: et sw=4 sts=4
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/PH5P.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/PH5P.php
<?php /** * Experimental HTML5-based parser using Jeroen van der Meer's PH5P library. * Occupies space in the HTML5 pseudo-namespace, which may cause conflicts. * * @note * Recent changes to PHP's DOM extension have resulted in some fatal * error conditions with the original version of PH5P. Pending change...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
true
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php
<?php /** * Parser that uses PHP 5's DOM extension (part of the core). * * In PHP 5, the DOM XML extension was revamped into DOM and added to the core. * It gives us a forgiving HTML parser, which we use to transform the HTML * into a DOM, and then into the tokens. It is blazingly fast (for large * documents, i...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DirectLex.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DirectLex.php
<?php /** * Our in-house implementation of a parser. * * A pure PHP parser, DirectLex has absolutely no dependencies, making * it a reasonably good default for PHP4. Written with efficiency in mind, * it can be four times faster than HTMLPurifier_Lexer_PEARSax3, although it * pales in comparison to HTMLPurifier...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter/YouTube.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter/YouTube.php
<?php class HTMLPurifier_Filter_YouTube extends HTMLPurifier_Filter { /** * @type string */ public $name = 'YouTube'; /** * @param string $html * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $context * @return string */ public function preFilter(...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter/ExtractStyleBlocks.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter/ExtractStyleBlocks.php
<?php // why is this a top level function? Because PHP 5.2.0 doesn't seem to // understand how to interpret this filter if it's a static method. // It's all really silly, but if we go this route it might be reasonable // to coalesce all of these methods into one. function htmlpurifier_filter_extractstyleblocks_muteerr...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Text.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Text.php
<?php /** * Concrete text token class. * * Text tokens comprise of regular parsed character data (PCDATA) and raw * character data (from the CDATA sections). Internally, their * data is parsed with all entities expanded. Surprisingly, the text token * does have a "tag name" called #PCDATA, which is how the DTD r...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Comment.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Comment.php
<?php /** * Concrete comment node class. */ class HTMLPurifier_Node_Comment extends HTMLPurifier_Node { /** * Character data within comment. * @type string */ public $data; /** * @type bool */ public $is_whitespace = true; /** * Transparent constructor. * ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Element.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Element.php
<?php /** * Concrete element node class. */ class HTMLPurifier_Node_Element extends HTMLPurifier_Node { /** * The lower-case name of the tag, like 'a', 'b' or 'blockquote'. * * @note Strictly speaking, XML tags are case sensitive, so we shouldn't * be lower-casing them, but these tokens cater...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/RemoveForeignElements.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/RemoveForeignElements.php
<?php /** * Removes all unrecognized tags from the list of tokens. * * This strategy iterates through all the tokens and removes unrecognized * tokens. If a token is not recognized but a TagTransform is defined for * that element, the element will be transformed accordingly. */ class HTMLPurifier_Strategy_Remov...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/Composite.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/Composite.php
<?php /** * Composite strategy that runs multiple strategies on tokens. */ abstract class HTMLPurifier_Strategy_Composite extends HTMLPurifier_Strategy { /** * List of strategies to run tokens through. * @type HTMLPurifier_Strategy[] */ protected $strategies = array(); /** * @param ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/MakeWellFormed.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/MakeWellFormed.php
<?php /** * Takes tokens makes them well-formed (balance end tags, etc.) * * Specification of the armor attributes this strategy uses: * * - MakeWellFormed_TagClosedError: This armor field is used to * suppress tag closed errors for certain tokens [TagClosedSuppress], * in particular, if a ta...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/FixNesting.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/FixNesting.php
<?php /** * Takes a well formed list of tokens and fixes their nesting. * * HTML elements dictate which elements are allowed to be their children, * for example, you can't have a p tag in a span tag. Other elements have * much more rigorous definitions: tables, for instance, require a specific * order for their...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/Core.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/Core.php
<?php /** * Core strategy composed of the big four strategies. */ class HTMLPurifier_Strategy_Core extends HTMLPurifier_Strategy_Composite { public function __construct() { $this->strategies[] = new HTMLPurifier_Strategy_RemoveForeignElements(); $this->strategies[] = new HTMLPurifier_Strategy...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/ValidateAttributes.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/ValidateAttributes.php
<?php /** * Validate all attributes in the tokens. */ class HTMLPurifier_Strategy_ValidateAttributes extends HTMLPurifier_Strategy { /** * @param HTMLPurifier_Token[] $tokens * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $context * @return HTMLPurifier_Token[] */ ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Null.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Null.php
<?php /** * Null cache object to use when no caching is on. */ class HTMLPurifier_DefinitionCache_Null extends HTMLPurifier_DefinitionCache { /** * @param HTMLPurifier_Definition $def * @param HTMLPurifier_Config $config * @return bool */ public function add($def, $config) { ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator.php
<?php class HTMLPurifier_DefinitionCache_Decorator extends HTMLPurifier_DefinitionCache { /** * Cache object we are decorating * @type HTMLPurifier_DefinitionCache */ public $cache; /** * The name of the decorator * @var string */ public $name; public function __con...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php
<?php class HTMLPurifier_DefinitionCache_Serializer extends HTMLPurifier_DefinitionCache { /** * @param HTMLPurifier_Definition $def * @param HTMLPurifier_Config $config * @return int|bool */ public function add($def, $config) { if (!$this->checkDefType($def)) { ret...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php
<?php /** * Definition cache decorator class that cleans up the cache * whenever there is a cache miss. */ class HTMLPurifier_DefinitionCache_Decorator_Cleanup extends HTMLPurifier_DefinitionCache_Decorator { /** * @type string */ public $name = 'Cleanup'; /** * @return HTMLPurifier_Defi...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Memory.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Memory.php
<?php /** * Definition cache decorator class that saves all cache retrievals * to PHP's memory; good for unit tests or circumstances where * there are lots of configuration objects floating around. */ class HTMLPurifier_DefinitionCache_Decorator_Memory extends HTMLPurifier_DefinitionCache_Decorator { /** ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/InterchangeBuilder.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/InterchangeBuilder.php
<?php class HTMLPurifier_ConfigSchema_InterchangeBuilder { /** * Used for processing DEFAULT, nothing else. * @type HTMLPurifier_VarParser */ protected $varParser; /** * @param HTMLPurifier_VarParser $varParser */ public function __construct($varParser = null) { $...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php
<?php /** * Generic schema interchange format that can be converted to a runtime * representation (HTMLPurifier_ConfigSchema) or HTML documentation. Members * are completely validated. */ class HTMLPurifier_ConfigSchema_Interchange { /** * Name of the application this schema is describing. * @type s...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Exception.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Exception.php
<?php /** * Exceptions related to configuration schema */ class HTMLPurifier_ConfigSchema_Exception extends HTMLPurifier_Exception { } // vim: et sw=4 sts=4
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/ValidatorAtom.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/ValidatorAtom.php
<?php /** * Fluent interface for validating the contents of member variables. * This should be immutable. See HTMLPurifier_ConfigSchema_Validator for * use-cases. We name this an 'atom' because it's ONLY for validations that * are independent and usually scalar. */ class HTMLPurifier_ConfigSchema_ValidatorAtom { ...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false
leadshop/leadshop
https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Validator.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Validator.php
<?php /** * Performs validations on HTMLPurifier_ConfigSchema_Interchange * * @note If you see '// handled by InterchangeBuilder', that means a * design decision in that class would prevent this validation from * ever being necessary. We have them anyway, however, for * redundancy. */ class HT...
php
Apache-2.0
5b533ee074d48dae356e32ca306e49a770b56750
2026-01-05T02:19:53.911414Z
false