I have a string that contains some html entities
<listing name="name goes there" phone="321321" >Text description</listing>
<anytag name="another name" phone="any phone" attr1="value 1" attr2="value 2">any can be written where ©MyRight</anytag>
<anytag name="another name line 2" phone="65851566" attr1="value ë" attr2="value 2">any can be written where ®MyRightëous</anytag>
I want to get all the attributes of these elements in a single regex for PHP,
If I try HtmlDom it gives me error of undefined tags and if I use SimpleXml it denies to parse html entities.
So I though to try RegExp but could not find solution to that.
Solutions other than RegExp also welcome.