I have a docx file and I need to replace some text. This is done inside codeigniter framework; here is the code:
$this->load->library(\'word\');
$te
It turns out that when you add text to a word file, it sometimes creates extra tags in the underlying xml file. So (pseudo code) ${NAME}
can become
Because of this, phpword can't find your needle.
I'm using a mac with microsoft word and i can just cut all the contents of the word file and paste them again.
Word will than recreate the underlying xml file in which ${NAME} is 1 tag instead of 3.