Content Replacer
The Content Replacer node finds and replaces text or content on web pages automatically. Think of it as a smart editor that can update information, fix errors, or customize content across websites without manual editing.
This is perfect for updating outdated information, fixing typos, customizing content for different audiences, or maintaining consistency across multiple pages.
How it works
Section titled “How it works”The node searches through the webpage for specific text or content patterns and replaces them with new content. It can handle simple text replacements or more complex pattern matching, and can replace just the first occurrence or all instances.
graph LR
Page[Web Page] --> Replacer{Content Replacer}
Replacer --> Updated[Updated Content]
style Replacer fill:#6d28d9,stroke:#fff,color:#fff
Setup guide
Section titled “Setup guide”- Identify Target Content: Specify the exact text or content you want to find and replace on the webpage.
- Set Replacement Content: Define what you want to replace the found content with.
- Configure Options: Choose whether to match case, replace all instances, or just the first one.
- Run Replacement: The node finds and replaces the content automatically.
Practical example: Brand name update
Section titled “Practical example: Brand name update”Let’s update an old company name throughout a webpage to reflect new branding.
Let’s update an old company name throughout a webpage to reflect new branding.
What you configure:
- Target Text: The text you want to find (e.g., “Old Tech Solutions”).
- Replacement Text: The new text to put in its place (e.g., “New Digital Innovations”).
- Options:
- Match Case: Decide if “old” and “Old” should be treated as the same.
- Replace All: Switch every instance on the page, not just the first one.
What happens:
- The node scans the page for your target text.
- It swaps in the new text wherever a match is found.
- It provides a summary of how many changes were made and which parts of the page were updated.
Common settings
Section titled “Common settings”| Setting | Purpose | When to Use |
|---|---|---|
| Case Sensitive | Match exact capitalization | When you need precise text matching |
| Replace All | Replace every occurrence | For comprehensive updates across the page |
| Preserve Formatting | Keep original text styling | When updating content that has special formatting |
Troubleshooting
Section titled “Troubleshooting”- No replacements made: Check that the target content exactly matches what’s on the page, including spacing and punctuation
- Formatting lost: Enable “Preserve Formatting” to maintain the original text styling
- Changes disappear: Content replacement is temporary and resets when you refresh the page - this is normal browser behavior