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

allow replace to be callable #23

Open
dereuromark opened this issue Sep 18, 2020 · 0 comments
Open

allow replace to be callable #23

dereuromark opened this issue Sep 18, 2020 · 0 comments

Comments

@dereuromark
Copy link

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?

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

No branches or pull requests

1 participant