Sha256: 87a038c4114362bdfcfe7461252ca081878f2efa55e0610893a273bc4d604557
Contents?: true
Size: 346 Bytes
Versions: 4
Compression:
Stored size: 346 Bytes
Contents
require 'htmlbeautifier' module HtmlBeautifier ## # Beautifies the +input+ HTML. # # @param input [String, #to_html] # @return [String] a beautified copy of the +input+. # def self.beautify(input) input = input.to_html unless input.is_a? String output = [] Beautifier.new(output).scan(input) output.join end end
Version data entries
4 entries across 4 versions & 1 rubygems