module Loofah

def remove_extraneous_whitespace(string)

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