Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override DOMDocument->createElement() #1

Merged
merged 1 commit into from
Aug 11, 2014
Merged

Override DOMDocument->createElement() #1

merged 1 commit into from
Aug 11, 2014

Conversation

zckrs
Copy link
Contributor

@zckrs zckrs commented Aug 6, 2014

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

@j0k3r
Copy link
Contributor

j0k3r commented Aug 6, 2014

Any unit test for this case? 😉

@j0k3r
Copy link
Contributor

j0k3r commented Aug 11, 2014

👍

j0k3r added a commit that referenced this pull request Aug 11, 2014
Override DOMDocument->createElement() to avoid "unterminated entity reference" error.
@j0k3r j0k3r merged commit 912ea81 into GromNaN:master Aug 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants