
Paragraph tags not inserted around block element when filter_html == true
Reported by Jonah Burke | October 18th, 2010 @ 03:37 AM
irb(main):016:0> doc = RedCloth.new( '<span></span>' )
=> "<span></span>"
irb(main):017:0> doc.filter_html = true
=> true
irb(main):018:0> doc.to_html
=> "<p><span></span></p>"
irb(main):019:0> doc2 = RedCloth.new( '<div></div>' )
=> "<div></div>"
irb(main):020:0> doc2.filter_html = true
=> true
irb(main):021:0> doc2.to_html
=> "<div></div>"
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RedCloth is a Ruby library for converting Textile into HTML