Html to OpenXmlHtml to OpenXml
Home
  • Library Entry Points
  • Page Layout
  • Hyperlinks and Internal Navigation
  • Image and Asset Processing Guide
  • Styling
  • Tables
  • Numbering List
  • Preformated Text
  • Defined Terms and Notes
  • Right to Left (Rtl)
LLM Docs Friendly
NuGet
GitHub
Home
  • Library Entry Points
  • Page Layout
  • Hyperlinks and Internal Navigation
  • Image and Asset Processing Guide
  • Styling
  • Tables
  • Numbering List
  • Preformated Text
  • Defined Terms and Notes
  • Right to Left (Rtl)
LLM Docs Friendly
NuGet
  • API Reference

    • Quickstart
    • Library Entry Points
    • Page Layout
    • Hyperlinks and Internal Navigation
    • Image and Asset Processing Guide
    • Styling
    • Tables
    • Numbering List
    • Preformated Text
    • Defined Terms and Notes
    • Right to Left (Rtl)
    • Extensibility
  • 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: 11/27/26, 9:12 PM
Contributors: Olivier Nizet
Prev
LLM Docs Friendly