View Single Post
Old 07-20-2019, 10:32 PM   #1
ranvel
Junior Member
ranvel began at the beginning.
 
ranvel's Avatar
 
Posts: 2
Karma: 10
Join Date: Jul 2019
Device: web
Epub->htmlz: Add <p> tags as <div class="Para"> children

Hello!

I have an epub that I am looking to fix when I export it to HTMLZ.

Currently, it defines the paragraph by a <div> with the class "Para" (short for 'Paragraph'). I am sure that I could just do a search and replace for all div that meet this criteria, just turning <div class="Para"> into <p>, but there are also 'id' tags in the mix, which are used for links.

So ideally, I'd like to add a child class to these divs.

Here's a quick example:

Current Epub:
<div id="link001" class="Para">
Let's start off by saying...
</div>

Current HTMLZ:
<div id="link001" class="Para">
Let's start off by saying...
</div>

Expected HTMLZ:
<div id="link001" class="Para">
<p>
Let's start off by saying...
</p>
</div>

Is this possible?

Thank you!
ranvel is offline   Reply With Quote