[Koha-bugs] [Bug 12123] HTML notices can break the notice viewer

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 13 09:22:58 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12123

--- Comment #37 from David Cook <dcook at prosentient.com.au> ---
(In reply to Katrin Fischer from comment #36)
> Be careful with the check - HTML5 is not valid XML. Unclosed <p> tags are
> perfectly valid. Often browsers are forgiving and probably mail clients too.
> We don't want to break display in more cases than now, that will annoy the
> libraries.

Good call.

In PHP, I used to use http://php.net/manual/en/book.tidy.php but that was
pre-HTML5 I think. 

Might be worth looking for a HTML specific module?

Also, I'm pretty sure XML::Simple is a bad choice of XML modules. The author of
it even discourages its use. No one should ever use it again I reckon.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list