* Add the dreaded <span> to the HTML whitelist
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 23 Dec 2004 14:04:11 +0000 (14:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 23 Dec 2004 14:04:11 +0000 (14:04 +0000)
includes/Parser.php

index c06d5be..199e9b8 100644 (file)
@@ -2218,14 +2218,14 @@ class Parser
                                'h2', 'h3', 'h4', 'h5', 'h6', 'cite', 'code', 'em', 's',
                                'strike', 'strong', 'tt', 'var', 'div', 'center',
                                'blockquote', 'ol', 'ul', 'dl', 'table', 'caption', 'pre',
-                               'ruby', 'rt' , 'rb' , 'rp', 'p'
+                               'ruby', 'rt' , 'rb' , 'rp', 'p', 'span'
                        );
                        $htmlsingle = array(
                                'br', 'hr', 'li', 'dt', 'dd'
                        );
                        $htmlnest = array( # Tags that can be nested--??
                                'table', 'tr', 'td', 'th', 'div', 'blockquote', 'ol', 'ul',
-                               'dl', 'font', 'big', 'small', 'sub', 'sup'
+                               'dl', 'font', 'big', 'small', 'sub', 'sup', 'span'
                        );
                        $tabletags = array( # Can only appear inside table
                                'td', 'th', 'tr'