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

Version Path
glue-0.41.0 lib/glue/html.rb
glue-0.26.0 lib/glue/html.rb
glue-0.27.0 lib/glue/html.rb
glue-0.28.0 lib/glue/html.rb
glue-0.31.0 lib/glue/html.rb
glue-0.40.0 lib/glue/html.rb
glue-0.30.0 lib/glue/html.rb
glue-0.29.0 lib/glue/html.rb