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?
Use action=parse
to get the html:
/api.php?action=parse&page=test
One way to get the text from the html would be to load it into a browser and walk the nodes, looking only for the text nodes, using JavaScript.