Skip to content

Commit

Permalink
version bump to v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Sep 28, 2019
1 parent 08fee8c commit f6d4c2d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions lib/loofah.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__)))

require 'nokogiri'
require "nokogiri"

require 'loofah/metahelpers'
require 'loofah/elements'
require "loofah/metahelpers"
require "loofah/elements"

require 'loofah/html5/safelist'
require 'loofah/html5/libxml2_workarounds'
require 'loofah/html5/scrub'
require "loofah/html5/safelist"
require "loofah/html5/libxml2_workarounds"
require "loofah/html5/scrub"

require 'loofah/scrubber'
require 'loofah/scrubbers'
require "loofah/scrubber"
require "loofah/scrubbers"

require 'loofah/instance_methods'
require 'loofah/xml/document'
require 'loofah/xml/document_fragment'
require 'loofah/html/document'
require 'loofah/html/document_fragment'
require "loofah/instance_methods"
require "loofah/xml/document"
require "loofah/xml/document_fragment"
require "loofah/html/document"
require "loofah/html/document_fragment"

# == Strings and IO Objects as Input
#
Expand All @@ -28,7 +28,7 @@
#
module Loofah
# The version of Loofah you are using
VERSION = '2.2.2'
VERSION = "2.3.0"

class << self
# Shortcut for Loofah::HTML::Document.parse
Expand Down Expand Up @@ -77,7 +77,7 @@ def scrub_xml_document(string_or_io, method)

# A helper to remove extraneous whitespace from text-ified HTML
def remove_extraneous_whitespace(string)
string.gsub(/\n\s*\n\s*\n/,"\n\n")
string.gsub(/\n\s*\n\s*\n/, "\n\n")
end
end
end

0 comments on commit f6d4c2d

Please sign in to comment.