Html to OpenXmlHtml to OpenXml
Home
API Reference
LLM Docs Friendly
NuGet
GitHub
Home
API Reference
LLM Docs Friendly
NuGet
  • API Reference

    • Quickstart
    • Library Entry Points
    • Hyperlinks and Internal Navigation
    • Image and Asset Processing Guide
    • Styling
    • Tables
    • Numbering List
    • Preformated Text
    • Defined Terms and Notes
    • Page Layout
    • Right to Left (Rtl)
  • LLM Docs Friendly
  • Performance
  • Appendix

    • Content Type MIME Header
    • Convert .dotx to .docx
    • Placeholder Replacement
    • Restrict Editing
  • Changelog

Performance and reliability

Recent versions include several internal improvements designed for large-scale document generation:

  • HTML parsing has been rewritten to use Span<char> in critical code paths, reducing allocations and improving parsing throughput by approximatively 25%.

  • All remaining regular expressions are executed with explicit timeouts to protect against catastrophic backtracking and potential denial-of-service scenarios when processing untrusted input.

  • The overall parsing is done via AngleSharp, and processed in accordance with the Interpreter design pattern.

Edit this page
Last Updated: 10/12/26, 10:33 AM
Contributors: Olivier Nizet
Prev
LLM Docs Friendly