Quantcast
Channel: PHPWord
Viewing all articles
Browse latest Browse all 450

New Post: Template setValue with caractère "&" - File corrupt

$
0
0
I find a tempory solution!

use the function htmlentities

$template = $PHPWord->loadTemplate('Client.docx');
$client = htmlentities("Ben&Nuts");
$template->setValue('CLIENTE', $cliente);
$template->save('Client.docx');

Viewing all articles
Browse latest Browse all 450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>