Skip to content

allow replace to be callable #23

@dereuromark

Description

@dereuromark

addParser(string $name, string $pattern, string $replace, string $content)

as well as addHtmlParser()

They could both also work with $replace being a callable.
Sometimes you need this in order to also apply some formatting or logic based on the parsed arguments.
Right now this seems not possible as is.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions