I have this function to ensure every img tag has absolute URL:
function absoluteSrc($html, $encoding = \'utf-8\') { $dom = new DOMDocume
I'd like to know the answer to this as well.
I ended up converting &..; entities to **ENTITY-...-ENTITY** before parsing and converting back after it is done.
**ENTITY-...-ENTITY**