Override DOMDocument->createElement() and tests
Merge pull request #1 from zckrs/master

Override DOMDocument->createElement() to avoid "unterminated entity reference" error.