[Vim-l] Character entities in wikitext
John Beckett
johnb.beckett at gmail.com
Thu May 22 11:24:35 UTC 2008
Angela wrote:
> This is because some HTML are allowed. <s> is struck out text
> and <q> is a quote.
>
> http://en.wikipedia.org/wiki/Help:HTML_in_wikitext lists the
> tags that will render as HTML tags. The code for this part is
> at
> <http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includ
> es/Sanitizer.php?view=markup>
Thanks - I now have a (superficial) understanding of what's going on, after browsing
the source, particularly where Magnus indicated.
Only one remaining mystery remains (no need to worry about this; I'm just recording
yet another puzzle):
The Sanitizer.php file has exactly one occurrence of 'q', and that occurrence is
commented out. Versions more than a year old have the same.
Yet tests show that:
wikitext <x whatever> is <x whatever> in the html source
wikitext <q whatever> is <q> in the html source ('whatever' omitted)
We expect the <x whatever> behaviour because 'x' is not recognised as an html
element. However, I can't find anything in Sanitizer.php which recognises 'q'.
John
More information about the Vim-l
mailing list