#22462Exception handler does not produce valid (X)HTML
Description
Problem:
The debug exception handler outputs (X)HTML which is not valid
Solution:
Make it valid
(issue imported from #M14118)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.