The exposed class in HTMLUtils has been removed in a breaking change as decided in https://forum.xwiki.org/t/remove-htmlutils-xwikixmloutputter-to-get-rid-of-jdom-1-dependency/15756.