Skip to content

Commit

Permalink
Fix to Rails nokogiri
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Jul 12, 2011
1 parent 9d57d55 commit 824d03c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -38,7 +38,7 @@ def to_hash(hash = {})
walker = lambda { |memo, parent, child, callback|
next if child.blank? && 'file' != parent['type']

if child.text?
if child.text? || child.cdata?
(memo[CONTENT_ROOT] ||= '') << child.content
next
end
Expand Down

0 comments on commit 824d03c

Please sign in to comment.