Forums / General Questions / How can I remove all these tables from my product descriptions?

How can I remove all these tables from my product descriptions?

Views: 904

Results 1 to 3 of 3
8 Jul 2013, 1:48 PM
#1
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

How can I remove all these tables from my product descriptions?

Hi Everyone!

Im looking for a way to change descriptions fast Im currently using easy populate and all my descriptions are as tables see here:

<table width="382"  border="0" ><tbody><tr><td><span style="color:#0000FF"><b>Size of Units:</b><br /></span></td><td><span style="color:#0000FF"><br /></span></td><td><br /></td><td><span style="color:#FF0000"><b>Frontages Included:</b><br /></span></td></tr><tr><td><span style="color:#0000FF">Width:<br /></span></td><td><span style="color:#0000FF">150mm<br /></span></td><td><br /></td><td><span style="color:#FF0000">1 * 147mm x 715mm</span></td></tr><tr><td><span style="color:#0000FF">Depth:<br /></span></td><td><span style="color:#0000FF">560mm<br /></span></td><td><br /></td><td><span style="color:#FF0000"><br /></span></td></tr><tr><td><span style="color:#0000FF">Height:<br /></span></td><td><span style="color:#0000FF">720mm<br /></span></td><td><br /></td><td><span style="color:#FF0000"><br /></span></td></tr></tbody></table>

I now only want them as simple lists:

<b>Size of Units:</b><br />
Width:		150mm<br />
Depth:	560mm<br />
Height: 	720mm<br />
<b>Frontages Included:</b><br />
1 * 147mm x 715mm

What im looking for is a fast way to change the upper table html into the lower html somehow. I always try a series of careful search and replaces but I cant figure it out!

10 Jul 2013, 12:27 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How can I remove all these tables from my product descriptions?

If the descriptions all (or mostly) have the same format and number of items, I would make up a dummy list, drop a copy into each product description, copy/paste the items from the table into it, and delete the old table code. That seems to be the most "automated" I would bet on.

<h4>Size of Units:</h4>
Width:    mm<br />
Depth:    mm<br />
Height:     mm<br />
<h4>Frontages Included:</h4>
1 * mm x mm
```Then you can style the elements if required.
12 Jul 2013, 1:38 PM
#3
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Re: How can I remove all these tables from my product descriptions?

I ended up doing it like this,

Many thanks,
Daniel