FastParser uses libxml2 internally, http://xmlsoft.org/html/libxml-entities.html to do most of the work.
Something like this: https://gerrit.libreoffice.org/c/core/+/106630 would be a starting point.
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice