On mer, 2002-02-27 at 02:51, Jan Hidders wrote:
From: "Brion L. VIBBER"
<brion(a)pobox.com>
Someone wrote in [[wikipedia:Bug reports]] today
about the ruby tags
(<ruby>, <rb>, <rt>, <rp>) being disabled, and requesting to have
them
reinstated.
Well you probably know that my position is that allowing HTML tags was one
of the biggest mistakes ever made in the history of Wikipedia software. But
they are here now and we can't make them go away, so we have to deal with
them anyway.
Heh. :) Well, the alternative is to provide our own special wiki markup
for *every* feature that people need, including complicated things like
tables. At some point the simplicity of the wiki markup and the
complexity of the features collide, and you may as well make use of
peoples' existing experience with the HTML codes.
These tags look very useful to me, so I agree with
allowing
them.
(see also a few messages to this effect in intlwiki-l)
Great, I'll go ahead and add them then.
As a technical remark I would like to see a central
array or something that
records what tags are allowed (and perhaps even how they might be nested and
what attributes they may have).
Hmm, that could be done. Guess it's time to rewrite removeHTMLtags()
again. (yay)
For instance, in presenting the search
results I have to deal with HTML tags that might be present, and it would be
pleasant if this would automatically adapt if new tags are allowed.
Can you just run removeHTMLtags() separately over each chunk of
extracted text? That should automatically close off tags, etc. I haven't
taken a look at the search code in a while though so I'm not sure how it
works at the moment...
-- brion vibber (brion @
pobox.com)