View Single Post
Old 09-18-2020, 09:14 AM   #10
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,733
Karma: 206739468
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Elektron View Post
> is HTML for >. Just replace it with > and you should be good to go
Quote:
Originally Posted by Gregg Bell View Post
Thanks Elektron
Actually, no. This is not the best approach. The extra angle bracket was changed to an entity precisely because its inclusion made the xhtml invalid. Changing it back to invalid xhtml will only cause it to be turned back to an entity again. Angle brackets cannot be used in xhtml text when they're not a part of valid (x)html markup

The correct approach is find out if there NEEDS to be an angle-bracket displayed at that particular point. If so, then it needs to stay as the greater-than entity. If there doesn't need to be an angle-bracket displayed there, you need to find out what went wrong with the xhtml in the first place. More than likely, the entity can simply be removed. But make no mistake: changing it back to '>' is not the solution to your problem. That will most likely only result in a Pink Preview Error page and a reversion right back to > if you save/open the epub in that error state.
DiapDealer is offline   Reply With Quote