Hello,

What characters will be escaped when I use:

format=json

Regards,
Siteshwar Vashisht

--- On Fri, 25/2/11, Platonides <platonides@gmail.com> wrote:

From: Platonides <platonides@gmail.com>
Subject: Re: [Mediawiki-api] Parsing MediaWiki markup to HTML
To: "MediaWiki API announcements & discussion" <mediawiki-api@lists.wikimedia.org>
Date: Friday, 25 February, 2011, 10:30 PM

S Vashisht wrote:
> Hello,
>
> I'm trying to learn how to convert MediaWiki markup to HTML. One of the
> ways I've figured out is by sending a query to api.php:
>
> http://en.wikipedia.org/w/api.php?action=parse&text={{Project:Sandbox}}&format=xml
>
> After parsing response which I get is all special characters in HTML are
> kind of escaped. For e.g. < is &lt;
>
> So <a> becomes
>
> &lt;a&gt;
>
> Is there any way to disable this feature ?
>
> Regards,
> Siteshwar Vashisht

When you get the results in XML format, those characters need to be
escaped. Add a &format= parameter for a different one (with different
escapings).

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api