View Single Post
Old 07-03-2020, 10:26 AM   #3
AlwaysNew
Member
AlwaysNew began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jun 2020
Device: Kindle
Thanks JS, but the replace code you suggested replaces the entire chapter.

Quote:
Originally Posted by JSWolf View Post
Replace with...
Code:
<h1 class="p15">\1</h1>
I need to replace one open and closed p tag (with a nested span and chapter title inside it) with an h1 tag.

That is, from this:
Code:
 <p class="p23"><span id="chapter-5"></span>Coming Home</p>
To this:
Code:
 <h1 class="p15"><span id="chapter-5"></span>Coming Home</p>
And I want to do that with every succeeding chapter in the book.

Thanks in advance for your help!
AlwaysNew is offline   Reply With Quote