Quote:
Originally Posted by paperwhite13
You told me to remove the id, without asking what it does, even though the index stops working without it.
Code:
Lorem ipsum <a id="_idTextAnchor005"></a> dolor sit amet
...
<p>Term<a href="part1.xhtml#_idTextAnchor005">5</a></p>
|
I generally remove IDs, but before I do that, I run my search for
a elements where the
href attribute points to a file in the EPUB. Those target elements get an attribute (one that isn't part of the HTML standard) added, then I remove the
id attribute from every element that doesn't have my special attribute. Then, I remove my special attribute from every element. Since this is just 3 saved searches, it goes pretty fast.