- Issue created by @marvil07
- Merge request !90Add text mode to dom_str_replace migrate process plugin β (Open) created by marvil07
- Issue was unassigned.
- Status changed to Needs review
3 months ago 6:31pm 14 March 2024
dom_str_replace
already provides a way to replace over the element and its attributes.
It would be great to also be able to do that over the node text content.
Let us add a new text
mode for dom_str_replace
plugin.
E.g. We could try to replace a link text content with the following approach in YAML.
-
plugin: dom_str_replace
mode: text
xpath: '//a'
search: 'Find more information here'
replace: 'More information'
Add patch.
Review.
New text
mode for dom_str_replace
added.
N.A.
N.A.
Needs review
6.0
Plugins