In my wiki installation, I have edited the sanitizer to allow use of as much HTML as possible, but there are some tags I cannot add successfully due to strange characters.
adding '!DOCTYPE' returns <!DOCTYPE as it would do if the tag was not allowed.
the attribute 'http-equiv' gets removed, presumably because of the dash.
Do these characters need to be escaped or written in a different way? I've tried various methods without success. Hope you can help.
Regards,
Bob Jones
What kind of html are you trying to insert? Those html can't appear *into the article*. <!DOCTYPE must appear on the top of the page, before the html. It will be provided by the skin, not the user. 'http-equiv' is parameter of <meta tag, which only appears into <head> As the article is part of the body, shouldn't appear neither.
Thank you for your reply.
I can use most html on the wiki, just not the tags/attributes with characters ! and - as they get converted in the same way that tags not included in the Sanitizer get converted. I am looking for a way around this as I need to use a !DOCTYPE tag and a http-equiv at the top of my article. Putting them in a skin won't work as I need to have the choice of including them or not on each page.
Regards,
Bob Jones
On 8/22/06, Platonides Platonides@gmail.com wrote:
What kind of html are you trying to insert? Those html can't appear *into the article*.
<!DOCTYPE must appear on the top of the page, before the html. It will be provided by the skin, not the user. 'http-equiv' is parameter of <meta tag, which only appears into <head> As
the article is part of the body, shouldn't appear neither.
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Robert Jones wrote:
I can use most html on the wiki, just not the tags/attributes with characters ! and - as they get converted in the same way that tags not included in the Sanitizer get converted. I am looking for a way around this as I need to use a !DOCTYPE tag and a http-equiv at the top of my article. Putting them in a skin won't work as I need to have the choice of including them or not on each page.
The thing is that those *won't work* in the wiki portion of the page. They *need* to be output into the skin portion or they would have no effect.
Thus what you need is for your page to alter the skin output by setting some variable. Please note this will have effects on caching, so be careful to either include the information in the ParserOutput object which is cached, or to disable the parser cache.
-- brion bivbber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org