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

internal link is broken with Html::addHtml #1300

Closed
1 of 3 tasks
lalop opened this issue Mar 3, 2018 · 0 comments · Fixed by #1336
Closed
1 of 3 tasks

internal link is broken with Html::addHtml #1300

lalop opened this issue Mar 3, 2018 · 0 comments · Fixed by #1336

Comments

@lalop
Copy link
Contributor

lalop commented Mar 3, 2018

This is:

Expected Behavior

When adding internal link via Html::addHtml with a tag like <a href="#anchor">link to anchor</a> I'm expecting to get an intra-doc link.

Current Behavior

Currently there is no link at all, only the content link to anchor

How to Reproduce

<?php
require __DIR__ . '/vendor/autoload.php';

$phpWord = new \PhpOffice\PhpWord\PhpWord();
$section = $phpWord->addSection();
PhpOffice\PhpWord\Shared\Html::addHtml($section, '<a href="#anchor">link to anchor</a>');

Context

  • PHP version: 7
  • PHPWord version: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant