Return the text content of the document. It does not containing trailing spaces and asterisks at the start of the line.