When writing html doc into a `StringWriter` HAP is wasting a lot of memory concatenating strings. <img width="615" height="184" alt="Image" src="https://github.com/user-attachments/assets/ce43e6a5-72ec-4aa7-b92b-06e788538fe1" /> There's already a PR that fixes this, suggested more than a year ago, please merge it #556