![]() |
| Adobe Forums » Software Discussions » GoLive » Macintosh » Removing anchors from FrameMaker HTML conversion |
| Tags: |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
After converting a FrameMaker document into an HTML site, I'm left with an anchor (marker) for nearly every single element on every HTML page: paragraph, list, heading, etc. Besides the code bloat, it makes viewing and working with pages in GoLive difficult.
Is there a way to remove all these anchors in bulk from the HTML? Search-and-replace doesn't work in the usual sense, because every anchor has a unique numerical value. Some sort of script? Third-party tool? Any help would be appreciated. Thanks, Karen |
|
|||
|
Hi Karen,
What version of GoLive are you using? Can you post a link to an example page with the anchors? Would need to see if there's something that can be used to identify just those anchors in a Find By Element search. |
|
|||
|
Hi Nate,
Using GL CS2 8.0.1. See <http://www.registrar.ucla.edu/catalog/catalog08-09-20.htm> as an example. Look for coding similar to . The first set of numbers is usually (not always) the same for all the converted pages. The second set is unique for every anchor. Thanks, Karen |
|
|||
|
If you're already working in GoLive CS2, may as well fix it in that. Here are the steps:
1. Make a back-up of your file (in case something doesn't get entered or processed correctly). 2. With your file opened, go to Edit > Find > Find Code Elements 3. for Element, choose "Is" and "a" for anchor elements. 4. for Attribute, choose "name" and "Matches Reg. Expr." and enter this pattern in the field: 50532357_.* ....to tell it to search for any name attribute starting with "50532357_" (the . means any other character, the * means any number of other characters). 5. expand the area below for Change, and under Element choose "Replace by its content" so it strips out the element only. 6. hit the Apply to All button to find and replace all. Here's a screen shot of the settings: <http://www.mindpalette.com/remote_images/FindCodeElements.png> |
|
|||
|
Good going, Nate!
Process in Dreamweaver would be nearly identical. -- Murray <Nate_Baldwin@adobeforums.com> wrote in message news:59b69d51.4@webcrossing.la2eafNXanI... > If you're already working in GoLive CS2, may as well fix it in that. Here > are the steps: > > 1. Make a back-up of your file (in case something doesn't get entered or > processed correctly). > 2. With your file opened, go to Edit > Find > Find Code Elements > 3. for Element, choose "Is" and "a" for anchor elements. > 4. for Attribute, choose "name" and "Matches Reg. Expr." and enter this > pattern in the field: > 50532357_.* > ...to tell it to search for any name attribute starting with "50532357_" > (the . means any other character, the * means any number of other > characters). > 5. expand the area below for Change, and under Element choose "Replace by > its content" so it strips out the element only. > 6. hit the Apply to All button to find and replace all. > > Here's a screen shot of the settings: > <http://www.mindpalette.com/remote_images/FindCodeElements.png> |
![]() |
| Thread Tools | |
| Display Modes | |
|
|