That is done via the cppcheck-htmlreport
Python tool.
It is possible that it available/packaged on every system. In that case you can simply pull the latest version from the official repository: https://github.com/danmar/cppcheck/tree/main/htmlreport. The script is standalone.
This was already pointed out by @howlger in a previous comment: How to generate a readable report from the xml output of Cppcheck/Cppcheclipse?.