Html Modification Script

I need a script which will take all similar <span> tags and combine them if they are back to back or separated by: a space or punctuation. Note: ‘Similar’ <span> tags means that the span tag has the same style.

Example:

Original HTML File:
http://www.bdogi.com/scriptlance/Original.html

‘Scrubbed’ HTML File:
http://www.bdogi.com/scriptlance/Scrubbed.html

Interface:

All ‘Original’ files will be on my PC in the following directories:

/BaseDirectory/xxx/

Where /xxx/ is a numeric directory (000-????????) and will contain a number of ‘Original’ files. all files will have .html format.

What needs to be done is to allow the interface to:

1. Select /BaseDirectory/ directory
2. FTP all files to a specific location
3. Create all /xxx/ directories (if not already uploaded. if they are, do nothing with any files in that directory)
4. Create /original/ subdirectory for every /xxx/ directory
5. Create /scrubbed/ subdirectory for every /xxx/ directory
6. upload ALL originals to the /original/ subdirectory
7. scrub and upload ALL scrubbed versions to /scrubbed/ subdirectory
8. interface should show a list of the scrubbed files for easy browsing.

All this must be tested on your own server prior to acceptance.

NOTE: Script must be web-based and use HTML and php or javascript.

Leave a Reply

Your email address will not be published. Required fields are marked *