We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41cda48 commit aab84a0Copy full SHA for aab84a0
lib/chupa-text/decomposers/html.rb
@@ -48,7 +48,7 @@ def decompose(data)
48
doc = Nokogiri::HTML.parse(html, nil, guess_encoding(html))
49
body_element = (doc % "body")
50
if body_element
51
- body = extract_text(body_element, "").scrub.gsub(/^\s+|\s+$/, '')
+ body = extract_text(body_element, +"").scrub.gsub(/^\s+|\s+$/, '')
52
else
53
body = ""
54
end
0 commit comments