PHP: Get DOM attribute with encoding preserved
I'm currently parsing some tags in an HTML document using PHP DOM. I want to get the value of the content attribute value of the "keywords" meta tag UNCHANGED.
For an example, the string "keyword1, keyword2
, keyword2, keyword3" returns "keyword1, keyword2, keyword2, keyword3", and therefore, breaks the real amount of keywords in the output XML Document.
I have already tried using "htmlentities()", but it didn't do anything.