ePub files are simply zipped bundles of HTML files with a few extra documents (for table of contents, etc.) thrown in. You can actually edit ePub files using a free tool by the name of Sigil. Check it out:

Mastering Digital Arts for Web, Video, Mobile, IoT (and Space Travel)