Go to the source code of this file.
Classes | |
class | Sanitizer |
XHTML sanitizer for MediaWiki. More... | |
Enumerations | |
enum | MW_CHAR_REFS_REGEX |
Regular expression to match various types of character references in Sanitizer::normalizeCharReferences and Sanitizer::decodeCharReferences. More... | |
enum | MW_ATTRIBS_REGEX |
Variables | |
$attrib = '[A-Za-z0-9]' | |
Regular expression to match HTML/XML attribute pairs within a tag. | |
$space = '[\x09\x0a\x0d\x20]' | |
global | $wgHtmlEntities |
List of all named character entities defined in HTML 4.01 http://www.w3.org/TR/html4/sgml/entities.html. | |
global | $wgHtmlEntityAliases |
Character entity aliases accepted by MediaWiki. |
Copyright (C) 2002-2005 Brion Vibber <brion@pobox.com> et al http://www.mediawiki.org/
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
Definition in file Sanitizer.php.
enum MW_ATTRIBS_REGEX |
Definition at line 44 of file Sanitizer.php.
enum MW_CHAR_REFS_REGEX |
Regular expression to match various types of character references in Sanitizer::normalizeCharReferences and Sanitizer::decodeCharReferences.
Definition at line 31 of file Sanitizer.php.
$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 UploadForm::checkSvgScriptCallback().
$space = '[\x09\x0a\x0d\x20]' |
$wgHtmlEntities |
List of all named character entities defined in HTML 4.01 http://www.w3.org/TR/html4/sgml/entities.html.
Definition at line 62 of file Sanitizer.php.
$wgHtmlEntityAliases |
Initial value:
array( 'רלמ' => 'rlm', 'رلم' => 'rlm', )
Definition at line 320 of file Sanitizer.php.