r6797 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r6796‎ | r6797 | r6798 >
Date:14:04, 23 December 2004
Author:vibber
Status:old
Tags:
Comment:
* Add the dreaded <span> to the HTML whitelist
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -2218,14 +2218,14 @@
22192219 'h2', 'h3', 'h4', 'h5', 'h6', 'cite', 'code', 'em', 's',
22202220 'strike', 'strong', 'tt', 'var', 'div', 'center',
22212221 'blockquote', 'ol', 'ul', 'dl', 'table', 'caption', 'pre',
2222 - 'ruby', 'rt' , 'rb' , 'rp', 'p'
 2222+ 'ruby', 'rt' , 'rb' , 'rp', 'p', 'span'
22232223 );
22242224 $htmlsingle = array(
22252225 'br', 'hr', 'li', 'dt', 'dd'
22262226 );
22272227 $htmlnest = array( # Tags that can be nested--??
22282228 'table', 'tr', 'td', 'th', 'div', 'blockquote', 'ol', 'ul',
2229 - 'dl', 'font', 'big', 'small', 'sub', 'sup'
 2229+ 'dl', 'font', 'big', 'small', 'sub', 'sup', 'span'
22302230 );
22312231 $tabletags = array( # Can only appear inside table
22322232 'td', 'th', 'tr'

Status & tagging log