We were excited about the Find and Replace plugin (v0.2.1), and it works well for strings and Structured Text. Unfortunately, our content team can’t really rely on it yet, and here’s why.
The core problem: editors don’t know how a value is stored. To them, a price, a headline and a paragraph are all just “text on the page”. They don’t know whether it’s a string, a float, a JSON field or an HTML text field. When the plugin silently skips some of these, a search looks complete but isn’t, so they still have to check every page by hand. That defeats the purpose of the plugin.
These are the gaps we hit with our real content. The first two are critical for us. Without them, the plugin can’t replace our manual work.
1. Text with HTML entities isn’t found
- Most of our multiple-paragraph text fields store special characters as entities, e.g. “über” is stored as
über.
- Searching “über Deinen” finds nothing in “Ob Laptop oder Rechner, ob über Deinen Browser”.
- For German content this affects most of our text, so nearly every search with an umlaut is incomplete.
- Request: match on the decoded text, and keep the stored format when replacing.
2. Prices (float fields) aren’t searched
- Our prices are localized float fields across about 70 records, shown on many pages in every locale.
- Price changes are the most common bulk edit our team does, and today they’re done by hand, record by record and locale by locale.
- A missed record means a wrong price on our live website, which is exactly what a find & replace tool should prevent.
- Request: find and replace exact values in float and integer fields (e.g. 46.9 → 49.9), with the usual preview and skip options.
3. JSON fields aren’t searched
- Our schema.org structured data lives in a localized JSON field and gets out of sync with the page text.
- Request: replace text inside JSON string values while keeping the JSON valid.
Even before full support: please show which fields or field types were not searched (e.g. “3 price fields and 17 JSON fields were skipped”). Then editors would at least know a result is incomplete.
Nice to have: search the alt and title text set on asset fields.
With these changes, the plugin would become a daily tool for our content team. Thanks for building it!
I think there’s another Unicode edge case worth considering here, especially with multilingual content.
Even after decoding HTML entities, two strings can look identical but have different underlying Unicode sequences. For example, “ü” can be stored as a single character or as “u” followed by a combining mark.
I’m not entirely sure how the plugin handles normalization right now, but it might be worth comparing text in the same Unicode normalization form before searching.
The tricky part is replacement. Finding equivalent text is one thing, but changing the stored representation could cause unexpected differences elsewhere.
And yeah, showing which fields were skipped would already be a big improvement. I’d rather see an incomplete search clearly marked than get zero results and assume everything was checked.
Hello @technology, thank you for the feature request!
We just shipped all of this on v0.3.1 
Text stored with HTML entities is now found (and replacing keeps the stored format), float and integer fields are searched in every locale, JSON string values are searched while keeping the JSON valid, and the alt and title set on asset fields are searched too. So nothing from your list gets skipped anymore.
One tip for prices: turn on whole-word matching when changing them, otherwise “46.9” also matches inside “146.9”.
Can you update the plugin and let us know if it works as expected for your team?
@whitescreen.dev good point! The plugin doesn’t normalize Unicode right now, but it’s pretty rare in practice, since typing in the browser gives you the single-character “ü”. If anyone runs into real content affected by it, let us know and we’ll take a look.
Thank you both for the feedback!
Thanks, v0.3.1 works great for us! We retested on our real content: text with HTML entities, prices, JSON and asset alt/title texts are all found and replaced correctly.
Two things we still ran into:
-
Links inside HTML text fields aren’t searched. A URL that appears in 98 links in our text blocks returns only 1 match (from a plain URL field). Updating links after a URL change is a common bulk edit for us. Could the plugin also search link URLs in HTML text, maybe as an option?
-
Unicode normalization does affect us. About 440 umlauts in 56 of our records are stored as a base letter plus a combining mark. Searching “Marktführer” finds 38 matches but misses 11 stored this way. Comparing text in the same normalization form, as @whitescreen.dev suggested, would fix it.
Thanks again for the quick update!
I see, thank you for the feedback!
Can you try v0.4.0 and see if that solves your issues?
We’ve also added a small section on the matching caveats at the bottom of the readme: https://github.com/datocms/plugins/tree/master/find-and-replace#matching-caveats
Thanks, v0.4.0 solves both for us! We retested on our real content:
- Link URLs in HTML text are found now. The URL that returned 1 match before now finds all its links, and replacing changes only the URL, with the HTML kept intact.
- “Marktführer” now finds 49 matches, including the 11 stored with combining marks.
Our earlier checks (HTML entities and prices) still work too. Thanks for the quick fixes and the matching caveats in the readme!