Quote:
Originally Posted by DNSB
Sorry to disagree, but I would suggest replacing the <a href..."wikilink"> with <a> otherwise you'll be hunting down and replacing all the </a>s that have been orphaned.
|
Yes, good catch. I'll correct the post.
Quote:
Originally Posted by DNSB
After the search/replace, I'd use DiapDealer's TagMechanic to remove the naked <a>whatever</a> pairs.
|
Yes, yes, if you want to be much safer, always use TagMechanic.
- - -
Side Note: But, in this very specific case, I always just trusted Sigil:
- Tools > Reformat HTML > Mend and Prettify All HTML Files
to auto-remove those dangling/orphaned </a>:
Code:
disappeared link</a>
But... I know what I'm doing with regex + I run it
immediately after doing that pass.
Another time I use that is when I'm fixing up TOCs! I'm just too lazy to correct all the nested mess, so I:
- Run Tools > Table of Contents > Create HTML Table of Contents.
- Use Saved Searches + regex to wipe most of it away.
- Run Mend+Prettify.
and am left with a very clean TOC!
One of these days, I should update those Saved Searches, but they've been serving me so well for 10+ years!!!