Skip to content

Commit

Permalink
Parser::SAX#text: Return on whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Zapotek committed Aug 28, 2018
1 parent 9805a43 commit 7813393
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/arachni/parser/sax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def attr( name, value )
end

def text( value )
return if value.strip.empty?
@current_node << Nodes::Text.new( value )
end

Expand Down

0 comments on commit 7813393

Please sign in to comment.