You are looking at the HTML representation of the TXT format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the TXT format, set format=txt.
See the complete documentation, or API help for more information.
Array
(
    [query] => Array
        (
            [namespaces] => Array
                (
                    [-2] => Array
                        (
                            [id] => -2
                            [case] => first-letter
                            [*] => Медиа
                            [canonical] => Media
                        )

                    [-1] => Array
                        (
                            [id] => -1
                            [case] => first-letter
                            [*] => Служебная
                            [canonical] => Special
                        )

                    [0] => Array
                        (
                            [id] => 0
                            [case] => first-letter
                            [*] => 
                            [content] => 
                        )

                    [1] => Array
                        (
                            [id] => 1
                            [case] => first-letter
                            [*] => Обсуждение
                            [subpages] => 
                            [canonical] => Talk
                        )

                    [2] => Array
                        (
                            [id] => 2
                            [case] => first-letter
                            [*] => Участник
                            [subpages] => 
                            [canonical] => User
                        )

                    [3] => Array
                        (
                            [id] => 3
                            [case] => first-letter
                            [*] => Обсуждение участника
                            [subpages] => 
                            [canonical] => User talk
                        )

                    [4] => Array
                        (
                            [id] => 4
                            [case] => first-letter
                            [*] => Egghelp.ru - TCL/TK Eggdrop Wiki
                            [subpages] => 
                            [canonical] => Project
                        )

                    [5] => Array
                        (
                            [id] => 5
                            [case] => first-letter
                            [*] => Обсуждение Egghelp.ru - TCL/TK Eggdrop Wiki
                            [subpages] => 
                            [canonical] => Project talk
                        )

                    [6] => Array
                        (
                            [id] => 6
                            [case] => first-letter
                            [*] => Файл
                            [canonical] => File
                        )

                    [7] => Array
                        (
                            [id] => 7
                            [case] => first-letter
                            [*] => Обсуждение файла
                            [subpages] => 
                            [canonical] => File talk
                        )

                    [8] => Array
                        (
                            [id] => 8
                            [case] => first-letter
                            [*] => MediaWiki
                            [subpages] => 
                            [canonical] => MediaWiki
                        )

                    [9] => Array
                        (
                            [id] => 9
                            [case] => first-letter
                            [*] => Обсуждение MediaWiki
                            [subpages] => 
                            [canonical] => MediaWiki talk
                        )

                    [10] => Array
                        (
                            [id] => 10
                            [case] => first-letter
                            [*] => Шаблон
                            [canonical] => Template
                        )

                    [11] => Array
                        (
                            [id] => 11
                            [case] => first-letter
                            [*] => Обсуждение шаблона
                            [subpages] => 
                            [canonical] => Template talk
                        )

                    [12] => Array
                        (
                            [id] => 12
                            [case] => first-letter
                            [*] => Справка
                            [subpages] => 
                            [canonical] => Help
                        )

                    [13] => Array
                        (
                            [id] => 13
                            [case] => first-letter
                            [*] => Обсуждение справки
                            [subpages] => 
                            [canonical] => Help talk
                        )

                    [14] => Array
                        (
                            [id] => 14
                            [case] => first-letter
                            [*] => Категория
                            [canonical] => Category
                        )

                    [15] => Array
                        (
                            [id] => 15
                            [case] => first-letter
                            [*] => Обсуждение категории
                            [subpages] => 
                            [canonical] => Category talk
                        )

                )

        )

)