We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Removing an entity reference during replaceWholeText() seems to remove the entity definition, too.
Hopefully here is a workaround for that.
The text was updated successfully, but these errors were encountered:
Example:
$document = new FluentDOM\Document(); $document->loadXML( '<!DOCTYPE p ['."\n". ' <!ENTITY t "world">'."\n". ']>'."\n". '<p>Hello &t;<br/>, nice to see you &t;</p>' ); /** @var \FluentDOM\Text $text */ $text = $document->documentElement->firstChild; $text->replaceWholeText('Hi universe'); echo $document->saveXML();
Output:
<?xml version="1.0"?> <!DOCTYPE p [ ]> <p>Hi universe<br/>, nice to see you &t;</p>
Sorry, something went wrong.
cb09b82
No branches or pull requests
Removing an entity reference during replaceWholeText() seems to remove the entity definition, too.
Hopefully here is a workaround for that.
The text was updated successfully, but these errors were encountered: