DOMDocument and HTML entities

I'm trying to parse some HTML that includes some HTML entities, like × $str = '<a href="http://example.com/"> A × B</a>'; $dom = new DomDocument; $dom ->