Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS HTML batch edit

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44651
    iknowdavehouse
    Participant

    Long shot – I need to delete all markup on a page apart from a div with an id of content (which contains the main content for that page).

    Sounds easy… but there is 250 pages to do this to. Tell me there’s something I can do?

    #134526
    Paulie_D
    Member

    Can’t think of anything.

    #134558
    TheDoc
    Member

    I’m sure there’s some sort of regex. Just not my specialty.

    #134609
    wmwood
    Participant

    @iknowdavehouse – Are you on windows? If so I just made a console app for this: http://www.filedropper.com/htmlelementempty

    Just put the exe in the directory of .html files double-click and type in the id that you want to empty.
    It will then loop through all the html files looking for the element with the said id and if it finds it clears it out.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.