twitter/twitter-text-rb — pull request #25 by tommyh (2011-12-08 23:59:04+00:00)
Title: autolink.rb#html_attrs was being overriden by the haml gem

the "haml" gem has a helper method called "html_attrs" which was conflicting with twitter-text-rb's html_attrs method.

https://github.com/nex3/haml/blob/master/lib/haml/helpers.rb#L198

So when I would auto_link in application_helper, any regular links would be corrupted:

text = "#foo http://google.com"
auto_link(text) =>

"#foo \"http://www.w3.org/1999/xhtml\", \"xml:lang\"=<{:rel=>\"nofollow\", :class={:rel=<\"nofollow\", :class=>nil}}/a<"]