I'm going to try to explain my question, when I said "content" I wanted to say the column "page_content_model" of the table "page" in the database. This column is like a real text on the page. (wikitext format)
For example, if I have a page named "Main page" and in the body is written "This is my page" I want to get this sentence.
We want to make a wiki with code about an app that the company is developing and the idea is to make a plug-in which the developer can choose different options and a fiel with code will be created (with the wiki's information).
I thinked an option is read the page literally, that is, to take the html code and clean the tags, but I don't know if there is another posibility more elegant.
I hope that is clear.