Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does a hyperlink set in this way have a # sign in it http:https://www.baidu.com front #2487

Open
jiimooyou opened this issue Oct 18, 2023 · 2 comments

Comments

@jiimooyou
Copy link

    $log = ROOT_PATH.'public/testse.docx';
    $jioe = new TemplateProcessor($log);
    $link = new Link("http:https://www.baidu.com","http:https://www.baidu.com",null,null,true);
    $jioe->setComplexBlock('sddsfew',$link);
    $jioe->saveAs( ROOT_PATH.'public/ssssssasawcw.docx');
@lebuhorskiy
Copy link

I was unable to reproduce this behavior.
The code you provided works fine for me on version 1.1.0

@yhyFinal
Copy link

$link = new Link("http:https://www.baidu.com","http:https://www.baidu.com",null,null,true);
第五个参数你传的true,表示内部链接,就像html锚点链接一样。外部链接应该传false,但是传了false生成的文件报错,我也在这个地方卡住了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants