Sha256: c6736e215e180529b5bcebc78b3da071be18206dd3484ea8282679e1e34a7c34
Contents?: true
Size: 349 Bytes
Versions: 8
Compression:
Stored size: 349 Bytes
Contents
module Glue module Html def self.cleanup(buf) out = buf.dup elements = "input|img|br|hr|link|style|render|include|inject|base|meta" out.gsub! /<textarea ([^>]*)><\/textarea>/, '<textarea \1>#{}</textarea>' out.gsub! /<(#{elements}) ([^>]*)><\/\1>/, '<\1 \2 />' out.gsub! /<(#{elements})><\/\1>/, '<\1 />' out end end end
Version data entries
8 entries across 8 versions & 1 rubygems