Forum


Replies: 3   Views: 1169
Addlink with & parameter
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 09-05-2021 - 19:11

Hello,

Please use htmlspecialchars with 'url' in that case:

$docx->addLink('Link to Google', array('url'=> htmlspecialchars('http://www.domain.com?test=111&attr=content')));

We have opened a task to apply htmlspecialchars automatically to 'url' option in addLink in the next release of phpdocx.

Regards.