|
Quick simple way to remove <a> ids?
I have an EPUB that's scattered through with apparently random <a id>s, which wouldn't bother me except the marked text shows as underlined on my Kobo.
Is there some way to do a search and replace, or something similar, to get rid of them all at once? Obviously each ID is unique, so I can't think of any other way to get rid of them other than manually, one by one. Which is a literal pain, since my disabled hands can't handle that much clicking.
Each ID number/string of letters appears in the stylesheet like so
.calibre25 {
-aw-bookmark-end: _Hlk91081997;
}
I tried deleting those rules (ie removing calibre25 from the stylesheet), but that did nothing. I tried removing the id number itself from the rules (so calibre25 was just empty), but nope. Obviously if I do a search and replace for <a id=> what I'm left with is a bunch of things like this <_Hlk91081997>, which then appear like that in the html and would still need to be manually removed individually. Using the remove unused css rules or the beautify all files tools didn't help either.
Converting to DOCX and then back to EPUB worked, in that it got rid of the <a>s, but it messed up a lot of the other formatting.
If you have an idea, please explain like I'm 5, I'm not super tech-savvy!
|