ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Go to the source code of this file.
Data Structures | |
class | Sanitizer |
Variables | |
const | MW_CHAR_REFS_REGEX '/&([A-Za-z0-9\x80-\xff]+); |&\#([0-9]+); |&\#x([0-9A-Za-z]+); |&\#X([0-9A-Za-z]+); |(&)/x' |
Regular expression to match various types of character references in Sanitizer::normalizeCharReferences and Sanitizer::decodeCharReferences. More... | |
$attrib = '[A-Za-z0-9]' | |
Regular expression to match HTML/XML attribute pairs within a tag. More... | |
$space = '[\x09\x0a\x0d\x20]' | |
const | MW_ATTRIBS_REGEX "/(?:^|$space)($attrib+) ($space*=$space* (?: # The attribute value: quoted or alone \"([^<\"]*)\" | '([^<']*)' | ([a-zA-Z0-9!#$%&()*,\\-.\\/:;<>?@[\\]^_`{|}~]+) | (\#[0-9a-fA-F]+) # Technically wrong, but lots of # colors are specified like this. # We'll be normalizing it. ) )?(?=$space|\$)/sx" |
global | $wgHtmlEntities |
List of all named character entities defined in HTML 4.01 http://www.w3.org/TR/html4/sgml/entities.html. More... | |
global | $wgHtmlEntityAliases |
Character entity aliases accepted by MediaWiki. More... | |
$attrib = '[A-Za-z0-9]' |
Regular expression to match HTML/XML attribute pairs within a tag.
Allows some... latitude. Used in Sanitizer::fixTagAttributes and Sanitizer::decodeTagAttributes
Definition at line 42 of file Sanitizer.php.
Referenced by SurveyImportParser\handlerBeginTag(), and TCPDF_STATIC\isValidCSSSelectorForTag().
$space = '[\x09\x0a\x0d\x20]' |
Definition at line 43 of file Sanitizer.php.
Referenced by TCPDF\getCSSBorderMargin(), and TCPDF\setEqualColumns().
|
private |
List of all named character entities defined in HTML 4.01 http://www.w3.org/TR/html4/sgml/entities.html.
Definition at line 63 of file Sanitizer.php.
Referenced by Sanitizer\hexCharReference().
$wgHtmlEntityAliases |
Character entity aliases accepted by MediaWiki.
Definition at line 321 of file Sanitizer.php.
Referenced by Sanitizer\hexCharReference().
const MW_ATTRIBS_REGEX "/(?:^|$space)($attrib+) ($space*=$space* (?: # The attribute value: quoted or alone \"([^<\"]*)\" | '([^<']*)' | ([a-zA-Z0-9!#$%&()*,\\-.\\/:;<>?@[\\]^_`{|}~]+) | (\#[0-9a-fA-F]+) # Technically wrong, but lots of # colors are specified like this. # We'll be normalizing it. ) )?(?=$space|\$)/sx" |
Definition at line 44 of file Sanitizer.php.
const MW_CHAR_REFS_REGEX '/&([A-Za-z0-9\x80-\xff]+); |&\#([0-9]+); |&\#x([0-9A-Za-z]+); |&\#X([0-9A-Za-z]+); |(&)/x' |
Regular expression to match various types of character references in Sanitizer::normalizeCharReferences and Sanitizer::decodeCharReferences.
Definition at line 30 of file Sanitizer.php.
Referenced by Sanitizer\hexCharReference().