LExpress/Welldom — pull request #1 by zckrs (2014-08-06 12:24:58+00:00)
Title: Override DOMDocument->createElement()

To avoid "unterminated entity reference" error, create a empty Element and append a Text node if value passed at createElement.

http://fr2.php.net/manual/en/domdocument.createelement.php#72699