Jump to content

Is there a quick way to remove short and long description html text formatting


Recommended Posts

Hello - I have a Prestashop site which has 379 products which have manually been copied and pasted from ebay. The short and long description fields feature tables as well as text so when they were copied and pasted into prestashop all of ebay's inline html formatting has been pasted too. Leaving me with a very messy looking Prestahsop site - is there a quick way to remove all of this inline formatting (such as span, style tags), but keep all of the basic html (such as table and paragraph tags). Or is the only way to do this to manually rewrite each short and long description.

Link to comment
Share on other sites

You can try to write a program that will go through the database content of those fields and trip out the code you need, but it will require using some regex to strip out just the code you need.

Unless you are quite familiar with regex, it may take you longer to write the script that it would to manually change them.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...