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

Add various overloads such as Match.replaceWith(), which accept lambdas #186

Open
lukaseder opened this issue May 1, 2023 · 0 comments
Open

Comments

@lukaseder
Copy link
Member

A useful method is Match.remove(Filter), which accepts a lambda that can be used to decide whether to remove an element from a Match (and from the underlying document).

Similar, lambda accepting methods would be useful, e.g. for:

  • after()
  • append()
  • attr()
  • before()
  • cdata()
  • content()
  • prepend()
  • rename()
  • replaceWith()
  • text()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant