{"action":"created","issue":{"url":"https://api.github.com/repos/olamedia/nokogiri/issues/26","repository_url":"https://api.github.com/repos/olamedia/nokogiri","labels_url":"https://api.github.com/repos/olamedia/nokogiri/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/olamedia/nokogiri/issues/26/comments","events_url":"https://api.github.com/repos/olamedia/nokogiri/issues/26/events","html_url":"https://github.com/olamedia/nokogiri/issues/26","id":176952678,"number":26,"title":"Содержимое тега <script>","user":{"login":"Sfairet","id":21312929,"avatar_url":"https://avatars.githubusercontent.com/u/21312929?v=3","gravatar_id":"","url":"https://api.github.com/users/Sfairet","html_url":"https://github.com/Sfairet","followers_url":"https://api.github.com/users/Sfairet/followers","following_url":"https://api.github.com/users/Sfairet/following{/other_user}","gists_url":"https://api.github.com/users/Sfairet/gists{/gist_id}","starred_url":"https://api.github.com/users/Sfairet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sfairet/subscriptions","organizations_url":"https://api.github.com/users/Sfairet/orgs","repos_url":"https://api.github.com/users/Sfairet/repos","events_url":"https://api.github.com/users/Sfairet/events{/privacy}","received_events_url":"https://api.github.com/users/Sfairet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-14T16:17:46Z","updated_at":"2016-09-24T12:24:49Z","closed_at":null,"body":"Здравствуйте!\r\n\r\nНе получается вытащить содержимое тега `<script>`. На сколько я понял, внутренности тега должны попасть в `#cdata-section`, но внутри всегда пустой массив.\r\nПример html:\r\n\r\n`<script>writestat('show');</script>`\r\n\r\nЧитаем:\r\n\r\n`$nakogiri->get('script')->toArray()`\r\n\r\nПолучаем:\r\n```\r\nArray\r\n(\r\n    [0] => Array\r\n        (\r\n            [#cdata-section] => Array\r\n                (\r\n                    [0] => Array\r\n                        (\r\n                        )\r\n\r\n                )\r\n\r\n        )\r\n\r\n)\r\n```\r\n\r\nПолучения атрибутов тега работает корректно."},"comment":{"url":"https://api.github.com/repos/olamedia/nokogiri/issues/comments/249362211","html_url":"https://github.com/olamedia/nokogiri/issues/26#issuecomment-249362211","issue_url":"https://api.github.com/repos/olamedia/nokogiri/issues/26","id":249362211,"user":{"login":"olamedia","id":611624,"avatar_url":"https://avatars.githubusercontent.com/u/611624?v=3","gravatar_id":"","url":"https://api.github.com/users/olamedia","html_url":"https://github.com/olamedia","followers_url":"https://api.github.com/users/olamedia/followers","following_url":"https://api.github.com/users/olamedia/following{/other_user}","gists_url":"https://api.github.com/users/olamedia/gists{/gist_id}","starred_url":"https://api.github.com/users/olamedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olamedia/subscriptions","organizations_url":"https://api.github.com/users/olamedia/orgs","repos_url":"https://api.github.com/users/olamedia/repos","events_url":"https://api.github.com/users/olamedia/events{/privacy}","received_events_url":"https://api.github.com/users/olamedia/received_events","type":"User","site_admin":false},"created_at":"2016-09-24T12:24:49Z","updated_at":"2016-09-24T12:24:49Z","body":"можно воспользоваться getDom или toXml\r\n\r\n"}}
{"actor":{"display_login":"olamedia"}}