Your problem is coding,
for the first echo you echo the text using the default encoding,
but for text stolen through a DOMDocument,
e + apostrophe is divided into two characters,
I do not know how to ensure the correct DOMDoc encoding ...
but i'm sure this is your problem
hope i helped, good luck.
source share