Find and Replace HTML Code


(Nic Hubbard) #1

Matrix Version: 5.4.3.1

Is there any way to find and replace HTML? We are working on making our website accessible and we have a lot of old and tags across news items for the past 15 years. Doing a find and replace would be MUCH easier.

Anyone know a method for doing this? The find and replace tool does not search for non-indexed content.


(Bart Banda) #2

What other type of content are you looking to replace? The only other way might be a DB replace using a script or something, but nothing really available via the Admin UI other than that tool.


(Nic Hubbard) #3

I am wanting to replace HTML such as a b tag with strong.


(Bart Banda) #4

Ah gotcha. Yea those are trickier to replace, especially those tags that are under the search index word limit. Maybe see if this script will help you https://matrix.squiz.net/manuals/server-administrator/chapters/system-management-scripts#search_replace_attribute_content.php ?


(Nic Hubbard) #6

Thanks. That script was removed for whatever reason from our install, but I found in on another install I had. After some testing I used it in production and it worked perfectly. Thank you!!