aristippe / pathagar

Pathagar is a simple bookserver serving OPDS feeds
GNU General Public License v2.0
1 stars 1 forks source link

HTML in ePub descriptions #12

Closed aristippe closed 8 years ago

aristippe commented 8 years ago

HTML is often specified in descriptions using HTML entities, such as italics being <i>. Perhaps replacing less than and greater than would be enough to get the descriptions to display properly.

https://wiki.python.org/moin/EscapingHtml

sinergatis commented 8 years ago

Yeah, good catch - noticed it even on my very-small-test-epubs suite! The fix on https://github.com/aristippe/pathagar/commit/2890f94a73de4138e725584dd0a8da21d6749bb3 makes much sense (and probably a handful of other fields in that and other templates should be escaped too, just in case).

aristippe commented 8 years ago

Cool. First issue closed! :)

edit: And indeed there could be a few other fields. I've only noticed it in descriptions so far though there could be others.

aristippe commented 8 years ago

Close with 2890f94a73de4138e725584dd0a8da21d6749bb3.