Skip to content

Instantly share code, notes, and snippets.

@patrickallaert
Last active June 28, 2022 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickallaert/a3badd92eae7a9e2e1cee73c41f40c04 to your computer and use it in GitHub Desktop.
Save patrickallaert/a3badd92eae7a9e2e1cee73c41f40c04 to your computer and use it in GitHub Desktop.
libxml FIX
--- a/eZ/RichText/Converter/Render/Template.php
+++ b/eZ/RichText/Converter/Render/Template.php
@@ -161,7 +161,7 @@
$rootNode->appendChild($newNode);
}
- return trim($this->richTextConverter->convert($innerDoc)->saveHTML());
+ return trim((string)$this->richTextConverter->convert($innerDoc)->saveHTML());
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment