Search and replace for multiline html
-
Hello, I need to replace some html content on 200+ pages of a site and all these pages are built with Beaver Builder.
I am familiar and experienced with using Better Search and Replace and also https://interconnectit.com/search-and-replace-for-wordpress-databases/ for such as task.
I understand that the Beaver Builder content is stored in the postmeta table and is serialized.
The issue is that when I copy the content I need to find and replace directly from the database using php my admin and paste it directly into either of these tools the content is not found.
I have discovered through testing that this is due to white space and new lines in the html. If I search on content which is all shown on a single line in php my admin and does not have any white space then it is found.
However the content that I need to replace is correctly formatted html. It is shown in the database in php my admin like this?
<div class="wow"> <a href="blah"><span>Some text</span></a> </div>
So how can I do a search and replace for this multiline content in the Beaver Builder data?
How exactly do I search on space characters, tab characters and new line characters given there are no and /n or similar characters showing when I view the Beaver Builder data in the database?
Thanks
- The topic ‘Search and replace for multiline html’ is closed to new replies.