I propose to add "htmlcharrefreplace" error handler which is similar to "xmlcharrefreplace" error handler but use html entity names if possible.
+1. This is usually what I want when I use xmlcharrefreplace. The implementation is simple, but I was unaware of the ability to add my own error handlers, so having this in the stdlib would improve discoverability a lot.