Skip to content

Replace token with HTML #2844

@dontub

Description

@dontub

Describe the problem

In a project we had the requirement to replace tokens with HTML and inherit the style from the paragraph and text run. The HTML code can be converted with \PhpOffice\PhpWord\Shared\Html::addHtml(), though there's no method to replace tokens with the generated elements, yet. We implemented the functionality here.

Are you interested in having this functionality in PHPWord itself? Then we could make a PR for this.

Describe the expected behavior

Priority

  • I want to crowdfund the feature (with @algora-io) and fund a community developer.
  • I want to pay the feature and fund a maintainer for that. (Contact @Progi1984)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions