{"action":"closed","issue":{"url":"https://api.github.com/repos/philss/floki/issues/15","labels_url":"https://api.github.com/repos/philss/floki/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/philss/floki/issues/15/comments","events_url":"https://api.github.com/repos/philss/floki/issues/15/events","html_url":"https://github.com/philss/floki/issues/15","id":91466677,"number":15,"title":"deep_text fails when handling comments","user":{"login":"gverilla","id":2787649,"avatar_url":"https://avatars.githubusercontent.com/u/2787649?v=3","gravatar_id":"","url":"https://api.github.com/users/gverilla","html_url":"https://github.com/gverilla","followers_url":"https://api.github.com/users/gverilla/followers","following_url":"https://api.github.com/users/gverilla/following{/other_user}","gists_url":"https://api.github.com/users/gverilla/gists{/gist_id}","starred_url":"https://api.github.com/users/gverilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gverilla/subscriptions","organizations_url":"https://api.github.com/users/gverilla/orgs","repos_url":"https://api.github.com/users/gverilla/repos","events_url":"https://api.github.com/users/gverilla/events{/privacy}","received_events_url":"https://api.github.com/users/gverilla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-27T13:52:16Z","updated_at":"2015-06-27T22:16:26Z","closed_at":"2015-06-27T22:16:26Z","body":"When I try to extract text from elements containing a comment-tag, the deep_text-extraction breaks. Instead of ignoring the comment, it throws a FunctionClauseError.\r\n\r\nHere is a minimal example:\r\n\r\n    defmodule FlokiCase do\r\n      def fail_deep_text_with_comment do\r\n        \"\"\"\r\n        <a>foo</a>\r\n        <!--bar-->\r\n        <b>baz</b>\r\n        \"\"\" |> Floki.parse |> Floki.text |> IO.puts\r\n      end\r\n    end\r\n\r\nI expected to have it returned \"foobaz\", but instead got this [error output](http://pastebin.com/GkbUi0Dx).\r\nI hope this helps."}}