lib/nexpose/vulnerability.rb in dradis-nexpose-4.2.0 vs lib/nexpose/vulnerability.rb in dradis-nexpose-4.3.0

- old
+ new

@@ -110,13 +110,14 @@ end def cleanup_html(source) result = source.to_s result.gsub!(/<ContainerBlockElement>(.*?)<\/ContainerBlockElement>/m){|m| "#{ $1 }"} + result.gsub!(/<Paragraph preformat=\"true\">(\s*)<Paragraph preformat=\"true\">(.*?)<\/Paragraph>(\s*)<\/Paragraph>/mi){|m| "\nbc. #{ $2 }\n\n"} result.gsub!(/<Paragraph preformat=\"true\">(.*?)<\/Paragraph>/mi){|m| "\nbc. #{ $1 }\n\n"} result.gsub!(/<Paragraph>(.*?)<\/Paragraph>/m){|m| "#{ $1 }\n"} result.gsub!(/<Paragraph>|<\/Paragraph>/, '') - result.gsub!(/<UnorderedList (.*?)>(.*?)<\/UnorderedList>/m){|m| "#{ $2 }"} + result.gsub!(/<UnorderedList(.*?)>(.*?)<\/UnorderedList>/m){|m| "#{ $2 }"} result.gsub!(/<OrderedList(.*?)>(.*?)<\/OrderedList>/m){|m| "#{ $2 }"} result.gsub!(/<ListItem>|<\/ListItem>/, '') result.gsub!(/ /, '') result.gsub!(/ /, '') result.gsub!(/\t\t/, '')