the AppendHTML() method processes text only up to the first closing paragraph tag

I ran into a problem that the paragraph.AppendHTML() method only processes text up to the first closing </p> paragraph tag.

For example:

I have Html of the form:

<p>In reference to Zia Park arrival and departure slips, per HISA Rule 2000 Series-Racetrack Safety Program, Section 2143 (Racehorse Monitoring):</p><p>(b) indicates each racetrack shall submit the following information to the Authority with respect to each Horse on its grounds.</p>

The paragraph will only contain:

<p>In reference to Zia Park arrival and departure slips, per HISA Rule 2000 Series-Racetrack Safety Program, Section 2143 (Racehorse Monitoring):</p>


4 Replies

SR Sindhu Ramesh Syncfusion Team January 16, 2025 11:14 AM UTC

Hi Dmytro,
We have tried to reproduce the reported issue, but it is working properly on our end. We have attached the sample, and the output generated from it. If you still encounter any issues, kindly modify the sample to make it a reproducible sample which will be helpful to reproduce the exact issue at our end.

For more detailed information about HTML conversion, Refer the UG
Customizing the HTML to Word conversion

Regards,
Sindhu Ramesh.


Attachment: Result_9c73557.docx


SR Sindhu Ramesh Syncfusion Team January 16, 2025 12:22 PM UTC

Hi Dmytro,
Kindly ignore the previous response.
We have tried to reproduce the reported issue, but it is working properly on our end. We have attached the sample, and the output generated from it. If you still encounter any issues, kindly modify the sample to make it a reproducible sample which will be helpful to reproduce the exact issue at our end.

For more detailed information about HTML conversion, Refer the UG
Customizing the HTML to Word conversion

Regards,
Sindhu Ramesh.



Attachment: ConvertHtmlstringtodocx_805835e3.zip


FK Ferry Koolen March 10, 2026 12:55 PM UTC

I think there is a misunderstanding here. <p> tags create new WParagraphs. So there should be a second WParagraph in your document which contains " (b) indicates each racetrack shall submit the following information to the Authority with respect to each Horse on its grounds. "



GN Gopinath Natesan Syncfusion Team March 11, 2026 07:20 AM UTC

Hi Ferry Koolen,
Upon review, we confirm that the HTML string contains two <p> tags, and each <p> tag generates a new WParagraph in DocIO using AppendHTML API. We have attached the sample and output for your reference which generated from the sample. Please refer to the attached output document image showing the two paragraphs:


If you still encounter any issues, kindly modify the sample to make it a reproducible sample which will be helpful to reproduce the exact issue at our end.

Regards,
Gopinath.


Attachment: ConvertHtmlstringtodocx_1ad340d4.zip

Loader.
Up arrow icon