Allow some HTML tags through to table of contents
Closed, ResolvedPublic

Assigned To
None
Priority
Normal
Author
bzimport
Subscribers
None
Projects
Reference
bz8393
Description

Author: benjamin.ingberg

Description:
I recently edited the wikipedia article about heat death:
http://en.wikipedia.org/wiki/Heat_death_of_the_universe

The edit consisted of me changing all the 10<sup>xx</sup> into 10Exx in the headers. Because the
table of contents changed 10<sup>xx</sup> into 10xx (for example 10<sup>40</sup> looked like
1040).

I suppose the same could be said for subscripts but I haven't tried that.


Version: unspecified
Severity: enhancement

bzimport added projects: MediaWiki-Parser, Easy.Via ConduitNov 21 2014, 9:33 PM
bzimport set Reference to bz8393.
bzimport created this task.Via LegacyDec 26 2006, 3:38 PM
bzimport added a comment.Via ConduitDec 26 2006, 5:25 PM

ayg wrote:

HTML tags are currently stripped. It would probably be sensible to make an
exception for <sup> and <sub>, maybe also <s>, <u>, and <del>/<ins>, but then
you start getting into issues of people setting weird styles and getting
non-blue or otherwise weird links. At least <sup> and <sub> should be
whitelisted, because those aren't too uncommon and stripping them results in
flat-out wrong output (e.g., 10^22 -> 1022).

bzimport added a comment.Via ConduitAug 29 2007, 12:08 AM

ayg wrote:

Fixed in r25260 for <sup> and <sub>. I left alone behavior for other attributes.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.