I'm quite new to MediaWiki, and now I have a bit of a problem.
I have the title of some Wiki page, and I want to get just the text of a said page using api.php, but all that I have found in the API is a way to obtain the Wiki content of the page (with wiki markup). I used this HTTP request...
/api.php?action=query&prop=revisions&rvlimit=1&rvprop=content&format=xml&titles=test
But I need only the textual content, without the Wiki markup.
Is that possible with the MediaWiki API?
解决方案
I don't think it is possible using the API to get just the text.
What has worked for me was to request the HTML page (using the normal URL that you would use in a browser) and strip out the HTML tags under the content div.
EDIT:
I have had good results using HTML Parser for Java. It has examples of how to strip out HTML tags under a given DIV.