Make WordPress Core


Ignore:
Timestamp:
02/24/2010 07:33:14 AM (14 years ago)
Author:
nacin
Message:

Coil the kses entities whitelist. See #12284

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/kses.php

    r13358 r13363  
    2525
    2626/**
    27  * You can override this in your my-hacks.php file You can also override this
    28  * in a plugin file. The my-hacks.php is deprecated in its usage.
     27 * You can override this in a plugin.
    2928 *
    3029 * @since 1.2.0
    3130 */
    32 if (!defined('CUSTOM_TAGS'))
    33     define('CUSTOM_TAGS', false);
    34 
    35 if (!CUSTOM_TAGS) {
     31if ( ! defined( 'CUSTOM_TAGS' ) )
     32    define( 'CUSTOM_TAGS', false );
     33
     34if ( ! CUSTOM_TAGS ) {
    3635    /**
    3736     * Kses global for default allowable HTML tags.
     
    336335
    337336    $allowedentitynames = array(
    338         'nbsp',
    339         'iexcl',
    340         'cent',
    341         'pound',
    342         'curren',
    343         'yen',
    344         'brvbar',
    345         'sect',
    346         'uml',
    347         'copy',
    348         'ordf',
    349         'laquo',
    350         'not',
    351         'shy',
    352         'reg',
    353         'macr',
    354         'deg',
    355         'plusmn',
    356         'acute',
    357         'micro',
    358         'para',
    359         'middot',
    360         'cedil',
    361         'ordm',
    362         'raquo',
    363         'iquest',
    364         'Agrave',
    365         'Aacute',
    366         'Acirc',
    367         'Atilde',
    368         'Auml',
    369         'Aring',
    370         'AElig',
    371         'Ccedil',
    372         'Egrave',
    373         'Eacute',
    374         'Ecirc',
    375         'Euml',
    376         'Igrave',
    377         'Iacute',
    378         'Icirc',
    379         'Iuml',
    380         'ETH',
    381         'Ntilde',
    382         'Ograve',
    383         'Oacute',
    384         'Ocirc',
    385         'Otilde',
    386         'Ouml',
    387         'times',
    388         'Oslash',
    389         'Ugrave',
    390         'Uacute',
    391         'Ucirc',
    392         'Uuml',
    393         'Yacute',
    394         'THORN',
    395         'szlig',
    396         'agrave',
    397         'aacute',
    398         'acirc',
    399         'atilde',
    400         'auml',
    401         'aring',
    402         'aelig',
    403         'ccedil',
    404         'egrave',
    405         'eacute',
    406         'ecirc',
    407         'euml',
    408         'igrave',
    409         'iacute',
    410         'icirc',
    411         'iuml',
    412         'eth',
    413         'ntilde',
    414         'ograve',
    415         'oacute',
    416         'ocirc',
    417         'otilde',
    418         'ouml',
    419         'divide',
    420         'oslash',
    421         'ugrave',
    422         'uacute',
    423         'ucirc',
    424         'uuml',
    425         'yacute',
    426         'thorn',
    427         'yuml',
    428         'quot',
    429         'amp',
    430         'lt',
    431         'gt',
    432         'apos',
    433         'OElig',
    434         'oelig',
    435         'Scaron',
    436         'scaron',
    437         'Yuml',
    438         'circ',
    439         'tilde',
    440         'ensp',
    441         'emsp',
    442         'thinsp',
    443         'zwnj',
    444         'zwj',
    445         'lrm',
    446         'rlm',
    447         'ndash',
    448         'mdash',
    449         'lsquo',
    450         'rsquo',
    451         'sbquo',
    452         'ldquo',
    453         'rdquo',
    454         'bdquo',
    455         'dagger',
    456         'Dagger',
    457         'permil',
    458         'lsaquo',
    459         'rsaquo',
    460         'euro',
    461         'fnof',
    462         'Alpha',
    463         'Beta',
    464         'Gamma',
    465         'Delta',
    466         'Epsilon',
    467         'Zeta',
    468         'Eta',
    469         'Theta',
    470         'Iota',
    471         'Kappa',
    472         'Lambda',
    473         'Mu',
    474         'Nu',
    475         'Xi',
    476         'Omicron',
    477         'Pi',
    478         'Rho',
    479         'Sigma',
    480         'Tau',
    481         'Upsilon',
    482         'Phi',
    483         'Chi',
    484         'Psi',
    485         'Omega',
    486         'alpha',
    487         'beta',
    488         'gamma',
    489         'delta',
    490         'epsilon',
    491         'zeta',
    492         'eta',
    493         'theta',
    494         'iota',
    495         'kappa',
    496         'lambda',
    497         'mu',
    498         'nu',
    499         'xi',
    500         'omicron',
    501         'pi',
    502         'rho',
    503         'sigmaf',
    504         'sigma',
    505         'tau',
    506         'upsilon',
    507         'phi',
    508         'chi',
    509         'psi',
    510         'omega',
    511         'thetasym',
    512         'upsih',
    513         'piv',
    514         'bull',
    515         'hellip',
    516         'prime',
    517         'Prime',
    518         'oline',
    519         'frasl',
    520         'weierp',
    521         'image',
    522         'real',
    523         'trade',
    524         'alefsym',
    525         'larr',
    526         'uarr',
    527         'rarr',
    528         'darr',
    529         'harr',
    530         'crarr',
    531         'lArr',
    532         'uArr',
    533         'rArr',
    534         'dArr',
    535         'hArr',
    536         'forall',
    537         'part',
    538         'exist',
    539         'empty',
    540         'nabla',
    541         'isin',
    542         'notin',
    543         'ni',
    544         'prod',
    545         'sum',
    546         'minus',
    547         'lowast',
    548         'radic',
    549         'prop',
    550         'infin',
    551         'ang',
    552         'and',
    553         'or',
    554         'cap',
    555         'cup',
    556         'int',
    557         'sim',
    558         'cong',
    559         'asymp',
    560         'ne',
    561         'equiv',
    562         'le',
    563         'ge',
    564         'sub',
    565         'sup',
    566         'nsub',
    567         'sube',
    568         'supe',
    569         'oplus',
    570         'otimes',
    571         'perp',
    572         'sdot',
    573         'lceil',
    574         'rceil',
    575         'lfloor',
    576         'rfloor',
    577         'lang',
    578         'rang',
    579         'loz',
    580         'spades',
    581         'clubs',
    582         'hearts',
    583         'diams'
     337        'nbsp',    'iexcl',  'cent',    'pound',  'curren', 'yen',
     338        'brvbar',  'sect',   'uml',     'copy',   'ordf',   'laquo',
     339        'not',     'shy',    'reg',     'macr',   'deg',    'plusmn',
     340        'acute',   'micro',  'para',    'middot', 'cedil',  'ordm',
     341        'raquo',   'iquest', 'Agrave',  'Aacute', 'Acirc',  'Atilde',
     342        'Auml',    'Aring',  'AElig',   'Ccedil', 'Egrave', 'Eacute',
     343        'Ecirc',   'Euml',   'Igrave',  'Iacute', 'Icirc',  'Iuml',
     344        'ETH',     'Ntilde', 'Ograve',  'Oacute', 'Ocirc',  'Otilde',
     345        'Ouml',    'times',  'Oslash',  'Ugrave', 'Uacute', 'Ucirc',
     346        'Uuml',    'Yacute', 'THORN',   'szlig',  'agrave', 'aacute',
     347        'acirc',   'atilde', 'auml',    'aring',  'aelig',  'ccedil',
     348        'egrave',  'eacute', 'ecirc',   'euml',   'igrave', 'iacute',
     349        'icirc',   'iuml',   'eth',     'ntilde', 'ograve', 'oacute',
     350        'ocirc',   'otilde', 'ouml',    'divide', 'oslash', 'ugrave',
     351        'uacute',  'ucirc',  'uuml',    'yacute', 'thorn',  'yuml',
     352        'quot',    'amp',    'lt',      'gt',     'apos',   'OElig',
     353        'oelig',   'Scaron', 'scaron',  'Yuml',   'circ',   'tilde',
     354        'ensp',    'emsp',   'thinsp',  'zwnj',   'zwj',    'lrm',
     355        'rlm',     'ndash',  'mdash',   'lsquo',  'rsquo',  'sbquo',
     356        'ldquo',   'rdquo',  'bdquo',   'dagger', 'Dagger', 'permil',
     357        'lsaquo',  'rsaquo', 'euro',    'fnof',   'Alpha',  'Beta',
     358        'Gamma',   'Delta',  'Epsilon', 'Zeta',   'Eta',    'Theta',
     359        'Iota',    'Kappa',  'Lambda',  'Mu',     'Nu',     'Xi',
     360        'Omicron', 'Pi',     'Rho',     'Sigma',  'Tau',    'Upsilon',
     361        'Phi',     'Chi',    'Psi',     'Omega',  'alpha',  'beta',
     362        'gamma',   'delta',  'epsilon', 'zeta',   'eta',    'theta',
     363        'iota',    'kappa',  'lambda',  'mu',     'nu',     'xi',
     364        'omicron', 'pi',     'rho',     'sigmaf', 'sigma',  'tau',
     365        'upsilon', 'phi',    'chi',     'psi',    'omega',  'thetasym',
     366        'upsih',   'piv',    'bull',    'hellip', 'prime',  'Prime',
     367        'oline',   'frasl',  'weierp',  'image',  'real',   'trade',
     368        'alefsym', 'larr',   'uarr',    'rarr',   'darr',   'harr',
     369        'crarr',   'lArr',   'uArr',    'rArr',   'dArr',   'hArr',
     370        'forall',  'part',   'exist',   'empty',  'nabla',  'isin',
     371        'notin',   'ni',     'prod',    'sum',    'minus',  'lowast',
     372        'radic',   'prop',   'infin',   'ang',    'and',    'or',
     373        'cap',     'cup',    'int',     'sim',    'cong',   'asymp',
     374        'ne',      'equiv',  'le',      'ge',     'sub',    'sup',
     375        'nsub',    'sube',   'supe',    'oplus',  'otimes', 'perp',
     376        'sdot',    'lceil',  'rceil',   'lfloor', 'rfloor', 'lang',
     377        'rang',    'loz',    'spades',  'clubs',  'hearts', 'diams',
    584378    );
    585379}
Note: See TracChangeset for help on using the changeset viewer.