Add various overloads such as Match.replaceWith(), which accept lambdas
Opened this issue · 0 comments
lukaseder commented
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()