Epub file can not be read correctly

Hi there, after exporting the EPUB file, I tried to open it in Apple Books or another e-book app, but it displayed an error:

Upon checking the source code of the EPUB file, I discovered that the JavaScript code contains the “<” character, which was causing the issue. Therefore, I added the “//<![CDATA[” tag to wrap the JavaScript code, and the error disappeared. It seems that this wrapping might have been overlooked when the EPUB file was generated. Could you please help check this?

I’m looking forward to your feedback.

Thanks!

Here is the source code: