mattdonnelly/MDHTMLLabel — pull request #15 by aprato (2014-02-27 02:06:52+00:00)
Title: Fix crash on spaces in tag properties, leak fixes and some cleanup

I was digging in to fix a crash I was getting and cleaned up a few pre-iOS 6 things that I'm guessing came from RT. I found a couple of leaks but didn't do an exhaustive search. The main problem I had was around spaces in attributes. As ugly as this is, it's valid:
`Google`

The first problem I fixed was the link detection code was expecting exactly href=' so I made it more flexible.
Second, the crash was because extra splices cause the components by " " to make too many array elements with the key value pair all split up. I've made it more forgiving.