Replace text content mode for dom_str_replace

Created on 14 March 2024, 3 months ago

Problem/Motivation

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.

Steps to reproduce

Proposed resolution

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'

Remaining tasks

Add patch.
Review.

User interface changes

New text mode for dom_str_replace added.

API changes

N.A.

Data model changes

N.A.

✨ Feature request
Status

Needs review

Version

6.0

Component

Plugins

Created by

πŸ‡΅πŸ‡ͺPeru marvil07

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024