Open
Description
If you load a Word 2007 file that has invalid XML characters in the content (for example xml-characters-in.docx) and then immediately try to save that file back out doing something like this:
$test = \PhpOffice\PhpWord\IOFactory::load('xml-characters-in.docx');
$test->save('xml-characters-out.docx');
You get a corrupted Word file back (see xml-characters-out.docx).
This is probably related to #671, #401, #514, and other similar issues. However, I don't have a chance to scrub the content because I am reading and then immediately trying to save the result.
Maybe the Reader should scrub the incoming $textContent?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Metadata
Metadata
Assignees
Labels
No labels