htmlcleaner: add test

Closes #26411.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>