Is this a safe way to parse out HTML tag attributes?
Whitespace around = is allowed, your regex won't handle that.
Characters in HTML can be encoded, some characters (like &amp;) have to be encoded. For example name="AT&amp;amp;T" should return that the value of name is AT&amp;T.